Skip to content

Commit 3517951

Browse files
authored
Upgrade CI build systems to use Python 3.10 (#1151)
* Upgrade CI build systems to use Python 3.10 Changes include: - Switch Azure Pipelines to use Python 3.10 instead of 3.6 - Switch GitHub Actions to use Python 3.10 instead of 3.10b2 for main CI - Switch GitHub Actions to use Python 3.10 instead of 3.9 for all auxilliary CI * Fix nox file
1 parent f57b086 commit 3517951

File tree

7 files changed

+10
-36
lines changed

7 files changed

+10
-36
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 24 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]
12+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:
@@ -28,26 +28,3 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: python -m nox --non-interactive --session tests-${{ matrix.python-version }} # Run nox for a single version of Python
31-
ci-beta:
32-
strategy:
33-
matrix:
34-
os: [ubuntu-latest, macos-latest, windows-latest]
35-
python-version: ["3.10.0-beta.2"]
36-
fail-fast: false
37-
runs-on: ${{ matrix.os }}
38-
steps:
39-
- uses: actions/checkout@v2 # https://github.com/actions/checkout
40-
with:
41-
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
42-
# Set fetch-depth: 0 to fetch all history for all branches and tags.
43-
fetch-depth: 0 # Needed for setuptools_scm to work correctly
44-
- name: Set up Python
45-
uses: actions/setup-python@v2 # https://github.com/actions/setup-python
46-
with:
47-
python-version: ${{ matrix.python-version }}
48-
- name: Install python prerequisites
49-
run: pip install -U --user pip setuptools setuptools-scm nox
50-
- name: Run tests and post coverage results
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
run: python -m nox --non-interactive --session tests-3.10 # Run nox for a single version of Python

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest]
12-
python-version: [3.9]
12+
python-version: ["3.10"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest]
12-
python-version: [3.9]
12+
python-version: ["3.10"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest]
12-
python-version: [3.9]
12+
python-version: ["3.10"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest]
12-
python-version: [3.9]
12+
python-version: ["3.10"]
1313
fail-fast: false
1414
runs-on: ${{ matrix.os }}
1515
steps:

azure-pipelines.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ jobs:
1414
# Run the pipeline with multiple Python versions
1515
strategy:
1616
matrix:
17-
Python36:
18-
python.version: '3.6'
19-
NOXSESSION: 'tests-3.6'
2017
Python37:
2118
python.version: '3.7'
2219
NOXSESSION: 'tests-3.7'
@@ -26,9 +23,9 @@ jobs:
2623
Python39:
2724
python.version: '3.9'
2825
NOXSESSION: 'tests-3.9'
29-
# Python310:
30-
# python.version: '3.10.0b2'
31-
# NOXSESSION: 'tests-3.10'
26+
Python310:
27+
python.version: '3.10'
28+
NOXSESSION: 'tests-3.10'
3229
# Increase the maxParallel value to simultaneously run the job for all versions in the matrix (max 10 for free open-source)
3330
maxParallel: 10
3431

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nox
22

33

4-
@nox.session(python=['3.9'])
4+
@nox.session(python=['3.10'])
55
def docs(session):
66
session.install(
77
'sphinx',
@@ -41,7 +41,7 @@ def tests(session, plugin):
4141
)
4242

4343

44-
@nox.session(python=['3.8', '3.9'])
44+
@nox.session(python=['3.8', '3.9', '3.10'])
4545
@nox.parametrize('step', ['mypy', 'flake8'])
4646
def validate(session, step):
4747
session.install('invoke', './[validate]')

0 commit comments

Comments
 (0)