-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: 3.13, attestations, and some modernization
Signed-off-by: Henry Schreiner <[email protected]>
- Loading branch information
Showing
5 changed files
with
40 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,7 @@ jobs: | |
with: | ||
python-version: 3.x | ||
- name: PyLint | ||
run: | | ||
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" | ||
pipx run nox -s pylint | ||
run: pipx run nox -s pylint -- --format=github | ||
|
||
check-lite: | ||
runs-on: ubuntu-latest | ||
|
@@ -44,19 +42,20 @@ jobs: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
name: Python ${{ matrix.python-version }} - Lite | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
|
||
- name: Requirements check | ||
run: python -m pip list | ||
- uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Test lite package | ||
run: pipx run nox -s lite-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
run: uvx nox -s lite-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
|
||
check-full: | ||
needs: [check-lite] | ||
|
@@ -70,6 +69,7 @@ jobs: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
name: Python ${{ matrix.python-version }} - Full | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -78,15 +78,17 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Requirements check | ||
run: python -m pip list | ||
- uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Install nox | ||
run: uv tool install nox | ||
|
||
- name: Run doctests on Python 3.11 | ||
if: matrix.python-version == 3.11 | ||
run: pipx run nox -s doctests-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
run: nox -s doctests-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
|
||
- name: Test package and generate coverage report | ||
run: pipx run nox -s coverage-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
run: nox -s coverage-${{ matrix.python-version.key || matrix.python-version }} --verbose | ||
|
||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
|
@@ -103,11 +105,10 @@ jobs: | |
with: | ||
python-version: 3.8.13 | ||
|
||
- name: Requirements check | ||
run: python -m pip list | ||
- uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Check compute features | ||
run: python -m pip install .[test,test-extras] | ||
run: uv pip install --system .[test,test-extras] | ||
|
||
- name: Test package | ||
run: python -m pytest -ra -m dis --ignore tests/test_notebooks.py | ||
|
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