From cf000b90094e3905fa1a1fc5836844e963319754 Mon Sep 17 00:00:00 2001 From: Andrey Shpak Date: Fri, 11 Aug 2023 04:28:31 +0300 Subject: [PATCH] Extend tests matrix --- .github/workflows/coverage.yml | 6 +++--- .github/workflows/tests.yml | 6 +++--- noxfile.py | 18 ++++++++++++------ 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2fff225e..d8c32006 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -20,7 +20,7 @@ jobs: mongodb-version: [5.0] include: - name: "coverage" - python: "3.10" + python: "3.11" steps: - uses: actions/checkout@v3 @@ -33,7 +33,7 @@ jobs: python -m pip install --upgrade pip pip install nox virtualenv - name: Start MongoDB - uses: supercharge/mongodb-github-action@1.7.0 + uses: supercharge/mongodb-github-action@1.10.0 with: mongodb-version: ${{ matrix.mongodb-version }} - name: Test build @@ -43,7 +43,7 @@ jobs: with: file: ./coverage.xml - name: Send coverage report to codeclimate - uses: paambaati/codeclimate-action@v3.0.0 + uses: paambaati/codeclimate-action@v5.0.0 continue-on-error: true with: coverageCommand: echo "Ignore rerun" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8cc0612a..f0bcb53a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,8 +16,8 @@ jobs: strategy: fail-fast: false matrix: - mongodb-version: ["3.6", "4.0", "4.2", "4.4", "5.0"] - python: ["3.7", "3.8", "3.9", "3.10", "pypy3.7"] + mongodb-version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"] + python: ["3.7", "3.8", "3.9", "3.10", "3.11.", "pypy3.7", "pypy3.8", "pypy3.9"] steps: - uses: actions/checkout@v3 @@ -30,7 +30,7 @@ jobs: python -m pip install --upgrade pip pip install nox virtualenv - name: Start MongoDB - uses: supercharge/mongodb-github-action@1.7.0 + uses: supercharge/mongodb-github-action@1.10.0 with: mongodb-version: ${{ matrix.mongodb-version }} - name: Test build diff --git a/noxfile.py b/noxfile.py index 0e03c1f9..b719e7f7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -49,7 +49,9 @@ def lint(session): session.run("pre-commit", "run", "-a") -@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7"]) +@nox.session( + python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"] +) @nox.parametrize("flask", ["==1.1.4", "==2.0.3", ">=2.1.2"]) @nox.parametrize("mongoengine", ["==0.21.0", "==0.22.1", "==0.23.1", ">=0.24.1"]) @nox.parametrize("toolbar", [True, False]) @@ -78,7 +80,9 @@ def _run_in_docker(session): session.run_always("docker", "rm", "-fv", "nox_docker_test", external=True) -@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7"]) +@nox.session( + python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"] +) @nox.parametrize("flask", ["==1.1.4", "==2.0.3", ">=2.1.2"]) @nox.parametrize("mongoengine", ["==0.21.0", "==0.22.1", "==0.23.1", ">=0.24.1"]) @nox.parametrize("toolbar", [True, False]) @@ -89,12 +93,14 @@ def full_tests(session, flask, mongoengine, toolbar, wtf): _run_in_docker(session) -@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7"]) +@nox.session( + python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"] +) @nox.parametrize("toolbar", [True, False]) @nox.parametrize("wtf", [True, False]) def latest(session, toolbar, wtf): """Run minimum tests for checking minimum code quality.""" - flask = ">=2.1.2" + flask = "==2.1.3" mongoengine = ">=0.24.1" session = base_install(session, flask, mongoengine, toolbar, wtf) if session.interactive: @@ -103,13 +109,13 @@ def latest(session, toolbar, wtf): session.run("pytest", *session.posargs) -@nox.session(python="3.10") +@nox.session(python="3.11") def documentation_tests(session): """Run documentation tests.""" return docs(session, batch_run=True) -@nox.session(python="3.10") +@nox.session(python="3.11") def docs(session, batch_run: bool = False): """Build the documentation or serve documentation interactively.""" shutil.rmtree(Path("docs").joinpath("_build"), ignore_errors=True)