Skip to content

Commit 31876c1

Browse files
committed
Extend tests matrix
1 parent 388a3cb commit 31876c1

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

.github/workflows/coverage.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
mongodb-version: [5.0]
2121
include:
2222
- name: "coverage"
23-
python: "3.10"
23+
python: "3.11"
2424

2525
steps:
2626
- uses: actions/checkout@v3
@@ -33,7 +33,7 @@ jobs:
3333
python -m pip install --upgrade pip
3434
pip install nox virtualenv
3535
- name: Start MongoDB
36-
uses: supercharge/mongodb-github-action@1.7.0
36+
uses: supercharge/mongodb-github-action@v1.10.0
3737
with:
3838
mongodb-version: ${{ matrix.mongodb-version }}
3939
- name: Test build
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
file: ./coverage.xml
4545
- name: Send coverage report to codeclimate
46-
uses: paambaati/codeclimate-action@v3.0.0
46+
uses: paambaati/codeclimate-action@v5.0.0
4747
continue-on-error: true
4848
with:
4949
coverageCommand: echo "Ignore rerun"

.github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
mongodb-version: ["3.6", "4.0", "4.2", "4.4", "5.0"]
20-
python: ["3.7", "3.8", "3.9", "3.10", "pypy3.7"]
19+
mongodb-version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"]
20+
python: ["3.7", "3.8", "3.9", "3.10", "3.11.", "pypy3.7", "pypy3.8", "pypy3.9"]
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -30,7 +30,7 @@ jobs:
3030
python -m pip install --upgrade pip
3131
pip install nox virtualenv
3232
- name: Start MongoDB
33-
uses: supercharge/mongodb-github-action@1.7.0
33+
uses: supercharge/mongodb-github-action@v1.10.0
3434
with:
3535
mongodb-version: ${{ matrix.mongodb-version }}
3636
- name: Test build

noxfile.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def lint(session):
4949
session.run("pre-commit", "run", "-a")
5050

5151

52-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7"])
52+
@nox.session(
53+
python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"]
54+
)
5355
@nox.parametrize("flask", ["==1.1.4", "==2.0.3", ">=2.1.2"])
5456
@nox.parametrize("mongoengine", ["==0.21.0", "==0.22.1", "==0.23.1", ">=0.24.1"])
5557
@nox.parametrize("toolbar", [True, False])
@@ -78,7 +80,9 @@ def _run_in_docker(session):
7880
session.run_always("docker", "rm", "-fv", "nox_docker_test", external=True)
7981

8082

81-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7"])
83+
@nox.session(
84+
python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"]
85+
)
8286
@nox.parametrize("flask", ["==1.1.4", "==2.0.3", ">=2.1.2"])
8387
@nox.parametrize("mongoengine", ["==0.21.0", "==0.22.1", "==0.23.1", ">=0.24.1"])
8488
@nox.parametrize("toolbar", [True, False])
@@ -89,12 +93,14 @@ def full_tests(session, flask, mongoengine, toolbar, wtf):
8993
_run_in_docker(session)
9094

9195

92-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7"])
96+
@nox.session(
97+
python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"]
98+
)
9399
@nox.parametrize("toolbar", [True, False])
94100
@nox.parametrize("wtf", [True, False])
95101
def latest(session, toolbar, wtf):
96102
"""Run minimum tests for checking minimum code quality."""
97-
flask = ">=2.1.2"
103+
flask = "==2.1.3"
98104
mongoengine = ">=0.24.1"
99105
session = base_install(session, flask, mongoengine, toolbar, wtf)
100106
if session.interactive:
@@ -103,13 +109,13 @@ def latest(session, toolbar, wtf):
103109
session.run("pytest", *session.posargs)
104110

105111

106-
@nox.session(python="3.10")
112+
@nox.session(python="3.11")
107113
def documentation_tests(session):
108114
"""Run documentation tests."""
109115
return docs(session, batch_run=True)
110116

111117

112-
@nox.session(python="3.10")
118+
@nox.session(python="3.11")
113119
def docs(session, batch_run: bool = False):
114120
"""Build the documentation or serve documentation interactively."""
115121
shutil.rmtree(Path("docs").joinpath("_build"), ignore_errors=True)

0 commit comments

Comments
 (0)