diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c05487417..974112fc6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] fail-fast: false runs-on: ${{ matrix.os }} steps: @@ -28,26 +28,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: python -m nox --non-interactive --session tests-${{ matrix.python-version }} # Run nox for a single version of Python - ci-beta: - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10.0-beta.2"] - fail-fast: false - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 # https://github.com/actions/checkout - with: - # Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. - # Set fetch-depth: 0 to fetch all history for all branches and tags. - fetch-depth: 0 # Needed for setuptools_scm to work correctly - - name: Set up Python - uses: actions/setup-python@v2 # https://github.com/actions/setup-python - with: - python-version: ${{ matrix.python-version }} - - name: Install python prerequisites - run: pip install -U --user pip setuptools setuptools-scm nox - - name: Run tests and post coverage results - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: python -m nox --non-interactive --session tests-3.10 # Run nox for a single version of Python diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 778a8aa41..55cdcde39 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9] + python-version: ["3.10"] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index c1db5ae31..16ed848b6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9] + python-version: ["3.10"] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7ffd0f184..b2c9bdad8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9] + python-version: ["3.10"] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 26fbb90ec..ae16a7203 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9] + python-version: ["3.10"] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9d29879cb..004fd3b2d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,9 +14,6 @@ jobs: # Run the pipeline with multiple Python versions strategy: matrix: - Python36: - python.version: '3.6' - NOXSESSION: 'tests-3.6' Python37: python.version: '3.7' NOXSESSION: 'tests-3.7' @@ -26,9 +23,9 @@ jobs: Python39: python.version: '3.9' NOXSESSION: 'tests-3.9' -# Python310: -# python.version: '3.10.0b2' -# NOXSESSION: 'tests-3.10' + Python310: + python.version: '3.10' + NOXSESSION: 'tests-3.10' # Increase the maxParallel value to simultaneously run the job for all versions in the matrix (max 10 for free open-source) maxParallel: 10 diff --git a/noxfile.py b/noxfile.py index 711e3e5fc..427a7c3f4 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,7 +1,7 @@ import nox -@nox.session(python=['3.9']) +@nox.session(python=['3.10']) def docs(session): session.install( 'sphinx', @@ -41,7 +41,7 @@ def tests(session, plugin): ) -@nox.session(python=['3.8', '3.9']) +@nox.session(python=['3.8', '3.9', '3.10']) @nox.parametrize('step', ['mypy', 'flake8']) def validate(session, step): session.install('invoke', './[validate]')