Skip to content

Commit 25baddf

Browse files
anselorkmvanbrunt
authored andcommitted
Setting the version in nox to just '3.10' appears to allow 3.10.0b2 to run for me
github CI appears to require full beta version number which is incompatably with how nox wants the version passed in. Changed CI to run test targets without specifying version and relying on nox to auto-skip unsupported versions Added Python 3.10 to azure pipelines.
1 parent edd4cb0 commit 25baddf

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
12-
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-beta.2]
12+
python-version: [3.6, 3.7, 3.8, 3.9, "3.10.0-beta.2"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:
@@ -27,4 +27,4 @@ jobs:
2727
- name: Run tests and post coverage results
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: python -m nox --non-interactive --session tests-${{ matrix.python-version }} # Run nox for a single version of Python
30+
run: python -m nox --non-interactive --session tests # Run nox for a single version of Python

azure-pipelines.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ jobs:
2626
Python39:
2727
python.version: '3.9'
2828
NOXSESSION: 'tests-3.9'
29+
# Python310:
30+
# python.version: '3.10.0b2'
31+
# NOXSESSION: 'tests-3.10'
2932
# Increase the maxParallel value to simultaneously run the job for all versions in the matrix (max 10 for free open-source)
30-
maxParallel: 4
33+
maxParallel: 10
3134

3235
steps:
3336
# Set the UsePythonVersion task to reference the matrix variable for its Python version

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def docs(session):
1717
)
1818

1919

20-
@nox.session(python=['3.6', '3.7', '3.8', '3.9', '3.10.0-beta.2'])
20+
@nox.session(python=['3.6', '3.7', '3.8', '3.9', '3.10'])
2121
@nox.parametrize('plugin', [None, 'ext_test', 'template', 'coverage'])
2222
def tests(session, plugin):
2323
if plugin is None:

0 commit comments

Comments
 (0)