-
Notifications
You must be signed in to change notification settings - Fork 30
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 (#511)
* ci: 3.13, attestations, and some modernization Signed-off-by: Henry Schreiner <[email protected]> * fix: update for current pylint Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
- Loading branch information
Showing
9 changed files
with
47 additions
and
61 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 |
---|---|---|
|
@@ -28,10 +28,9 @@ jobs: | |
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: astral-sh/setup-uv@v3 | ||
- name: PyLint | ||
run: | | ||
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" | ||
pipx run nox -s pylint | ||
run: uvx nox -s pylint -- --output-format=github | ||
|
||
check-lite: | ||
runs-on: ubuntu-latest | ||
|
@@ -44,19 +43,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,23 +70,27 @@ jobs: | |
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
name: Python ${{ matrix.python-version }} - Full | ||
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: 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 +107,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
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
File renamed without changes.
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