Skip to content

Commit ad38056

Browse files
author
Rami Chowdhury
committed
Add Python 3.11 to test matrix, update various dependencies
1 parent b4a8d58 commit ad38056

File tree

3 files changed

+95
-69
lines changed

3 files changed

+95
-69
lines changed

.github/workflows/tests.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
name: lint
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
- uses: actions/setup-python@v3
11-
with:
12-
python-version: "3.11"
13-
- name: pre-commit
14-
run: |
15-
python -m pip install pre-commit
16-
pre-commit run --show-diff-on-failure --all-files
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v3
11+
with:
12+
python-version: "3.11"
13+
- name: pre-commit
14+
run: |
15+
python -m pip install pre-commit
16+
pre-commit run --show-diff-on-failure --all-files
1717
pytest:
1818
name: pytest
1919
runs-on: ubuntu-latest
@@ -24,7 +24,7 @@ jobs:
2424
os: [ubuntu-latest, macos-latest, windows-latest]
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: actions/setup-python@v3
27+
- uses: actions/setup-python@v4
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Ensure poetry

poetry.lock

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tox.ini

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<<<<<<< HEAD
2+
=======
3+
# https://tox.readthedocs.io/en/latest/example/basic.html#compressing-dependency-matrix
4+
[tox]
5+
# NOTE: Pydantic <1.9 does not support Python 3.10
6+
envlist = py{37,38,39,310,311}-graphene{21,30}-pydantic{17,18,19}, py310-graphene30-pydantic19
7+
# CI will supply any versions not available locally
8+
skip_missing_interpreters = True
9+
# required if working with pyproject.toml
10+
isolated_build = True
11+
requires =
12+
tox-poetry-dev-dependencies
13+
14+
[testenv]
15+
whitelist_externals = poetry
16+
deps =
17+
graphene21: graphene>=2.1.8
18+
graphene30: graphene>=3.0,<3.1
19+
pydantic17: pydantic==1.7
20+
pydantic18: pydantic==1.8
21+
pydantic19: pydantic==1.9
22+
pytest
23+
pytest-cov
24+
commands =
25+
pytest -v tests/ --cov-report=term-missing --cov=graphene_pydantic {posargs}
26+
>>>>>>> dcf5149 (Add Python 3.11 to test matrix, update various dependencies)

0 commit comments

Comments
 (0)