Add noxfile and workflow to test docsite PRs (#1794)

* add noxfile with mkdocs build session

* add nox build check

* include reusable nox in ci workflow
This commit is contained in:
Don Naro
2024-03-27 18:29:38 +00:00
committed by GitHub
parent 07b8120788
commit dc0e86b823
3 changed files with 48 additions and 0 deletions

View File

@@ -99,3 +99,5 @@ jobs:
echo "${no_log}"
exit 1
fi
nox-sessions:
uses: ./.github/workflows/reusable-nox.yml

26
.github/workflows/reusable-nox.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
---
name: nox
"on":
workflow_call:
jobs:
nox:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- session: build
python-versions: "3.11"
name: "Run nox ${{ matrix.session }} session"
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup nox
uses: wntrblm/nox@2024.03.02
with:
python-versions: "${{ matrix.python-versions }}"
- name: "Run nox -s ${{ matrix.session }}"
run: |
nox -s "${{ matrix.session }}"