-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use hatch instead of nox (#212)
Signed-off-by: Henry Schreiner <[email protected]>
- Loading branch information
Showing
6 changed files
with
103 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,16 +32,14 @@ jobs: | |
- name: Run PyLint | ||
run: | | ||
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" | ||
pipx run --python=python nox -s pylint | ||
pipx run --python=python hatch run pylint:lint | ||
checks: | ||
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} | ||
name: Check Python on ${{ matrix.runs-on }} | ||
runs-on: ${{ matrix.runs-on }} | ||
needs: [pre-commit] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
runs-on: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
|
@@ -51,18 +49,19 @@ jobs: | |
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: | | ||
3.10 | ||
3.11 | ||
3.12 | ||
- name: Setup uv | ||
uses: yezz123/setup-uv@v4 | ||
with: | ||
uv-venv: ".venv" | ||
|
||
- name: Install package | ||
run: uv pip install .[test,cli] | ||
- name: Install hatch | ||
run: uv pip install --system hatch | ||
|
||
- name: Test package | ||
run: python -m pytest -ra | ||
- name: Test package (all Pythons) | ||
run: hatch test -a | ||
env: | ||
PYTHONUTF8: "1" | ||
|
||
|
@@ -88,19 +87,22 @@ jobs: | |
- name: Setup uv | ||
uses: yezz123/setup-uv@v4 | ||
|
||
- uses: wntrblm/[email protected] | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-versions: "3.11" | ||
python-version: "3.12" | ||
|
||
- name: Install hatch | ||
run: uv pip install --system hatch | ||
|
||
- name: Linkcheck | ||
run: nox -s docs -- -b linkcheck | ||
run: hatch run docs:linkcheck | ||
|
||
- name: Build docs with warnings as errors | ||
run: nox -s docs -- -W | ||
run: hatch run docs:html -W | ||
|
||
- name: Verify no changes required to API docs | ||
run: | | ||
nox -s build_api_docs | ||
hatch run api-docs:build | ||
git diff --exit-code | ||
action: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters