-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Python 3.12 support (#477)
* add Python 3.12 PyPI trove classifier * add Python 3.12 to CI * add workflow dispatch trigger to CI * list installed Python packages in CI
- Loading branch information
1 parent
891fdb0
commit 7167074
Showing
6 changed files
with
17 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre-commit: | ||
|
@@ -16,15 +17,15 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -36,6 +37,8 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install .[test] | ||
- name: List installed Python packages | ||
run: python -m pip list | ||
- name: Static code analysis with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
|
@@ -52,6 +55,8 @@ jobs: | |
- name: Install pyhf backends | ||
run: | | ||
python -m pip install .[pyhf_backends] # install pyhf backends | ||
- name: List installed Python packages | ||
run: python -m pip list | ||
- name: Test with pytest, generate coverage report (skipping typeguard) | ||
if: matrix.python-version == '3.8' | ||
run: | | ||
|
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