diff options
| author | Eric Lin <anselor@gmail.com> | 2021-06-16 11:29:30 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-06-17 14:10:24 -0400 |
| commit | 25baddfd652f5f8421cbac9d251a4d33d178c18e (patch) | |
| tree | 4fe15d66e0163bc1544ae2f596080a64e0dfa36d | |
| parent | edd4cb0f5cfb8160f9788a5df9399b2d67a00676 (diff) | |
| download | cmd2-git-25baddfd652f5f8421cbac9d251a4d33d178c18e.tar.gz | |
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.
| -rw-r--r-- | .github/workflows/ci.yml | 4 | ||||
| -rw-r--r-- | azure-pipelines.yml | 5 | ||||
| -rw-r--r-- | noxfile.py | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11f68e10..3a964092 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, 3.10.0-beta.2] + python-version: [3.6, 3.7, 3.8, 3.9, "3.10.0-beta.2"] fail-fast: false runs-on: ${{ matrix.os }} steps: @@ -27,4 +27,4 @@ jobs: - name: Run tests and post coverage results 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 + run: python -m nox --non-interactive --session tests # Run nox for a single version of Python diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8e5e170d..9d29879c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,8 +26,11 @@ jobs: Python39: python.version: '3.9' NOXSESSION: 'tests-3.9' +# Python310: +# python.version: '3.10.0b2' +# 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: 4 + maxParallel: 10 steps: # Set the UsePythonVersion task to reference the matrix variable for its Python version @@ -17,7 +17,7 @@ def docs(session): ) -@nox.session(python=['3.6', '3.7', '3.8', '3.9', '3.10.0-beta.2']) +@nox.session(python=['3.6', '3.7', '3.8', '3.9', '3.10']) @nox.parametrize('plugin', [None, 'ext_test', 'template', 'coverage']) def tests(session, plugin): if plugin is None: |
