Skip to content

Commit

Permalink
Extend tests matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed Aug 11, 2023
1 parent 388a3cb commit 31876c1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
mongodb-version: [5.0]
include:
- name: "coverage"
python: "3.10"
python: "3.11"

steps:
- uses: actions/checkout@v3
Expand All @@ -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@v1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Test build
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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@v1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Test build
Expand Down
18 changes: 12 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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])
Expand All @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 31876c1

Please sign in to comment.