Skip to content

Commit 0ac79de

Browse files
committed
Properly use the tox-gh-actions plugin
1 parent f145dc9 commit 0ac79de

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/test.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Set up Python ${{ matrix.python }}
16+
- name: Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v2
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020

2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install tox "poetry>=1.1,<2"
25-
poetry install
24+
pip install tox tox-gh-actions
2625
2726
- name: Run unit tests with tox
2827
run: tox
29-
env:
30-
TOXENV: py
31-

tox.ini

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
envlist = py3{6,7,8,9,10}, black, flake8, mypy, docs, manifest
33
isolated_build = true
44

5+
[gh-actions]
6+
python =
7+
3.6: py36
8+
3.7: py37
9+
3.8: py38
10+
3.9: py39
11+
3.10: py310
12+
513
[testenv:black]
614
basepython = python3.9
715
deps = black==21.10b0
@@ -37,7 +45,6 @@ commands =
3745
check-manifest -v
3846

3947
[testenv]
40-
whitelist_externals = poetry
4148
setenv =
4249
PYTHONPATH = {toxinidir}
4350
deps =
@@ -49,6 +56,4 @@ deps =
4956
pytest-timeout>=1.4,<2
5057
py36,py37: typing-extensions>=3.10,<4
5158
commands =
52-
pip uninstall -qqy graphql-core
53-
poetry install
54-
poetry run pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}
59+
pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}

0 commit comments

Comments
 (0)