Skip to content

Commit

Permalink
Lock Python versions
Browse files Browse the repository at this point in the history
Lock Python versions down to patch versions 3.11.9 and 3.12.3 for mise
and the code_quality GitHub workflow.

Have nox use versions locked to minor versions 3.11 and 3.12 in
noxfile.py so that it will use the latest matching version that is
installed.

In the code_quality workflow, run nox with the explicit Python versions
defined in the workflow.

Closes #138.
  • Loading branch information
rikardg committed Apr 16, 2024
1 parent 16bfddf commit 083ebf5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
nox:
strategy:
matrix:
python_version: ["3.11.8", "3.12.2"]
python_version: ["3.11.9", "3.12.3"]
nox_session: [tests, basics, examples]
os: [ubuntu-latest, macos-latest, macos-14]
install_uv: [0, 1]
Expand All @@ -31,12 +31,12 @@ jobs:
fi
- name: Test with nox
run: |
nox --python ${{ matrix.python_version }} --session ${{ matrix.nox_session }} -db ${{ matrix.install_uv == 1 && 'uv' || 'virtualenv' }}
nox -P ${{ matrix.python_version }} --session ${{ matrix.nox_session }} -db ${{ matrix.install_uv == 1 && 'uv' || 'virtualenv' }}
pyright_and_ruff:
strategy:
matrix:
python_version: ["3.11.8", "3.12.2"]
python_version: ["3.11.9", "3.12.3"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
python_compile = true

[tools]
python = ["3.12.2", "3.11.8"]
python = ["3.12.3", "3.11.9"]
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
nox.options.error_on_external_run = True
nox.options.stop_on_first_error

python_versions = ["3.11.8", "3.12.2"]
python_versions = ["3.11", "3.12"]


@nox.session(python=python_versions)
Expand Down

0 comments on commit 083ebf5

Please sign in to comment.