Skip to content

Commit 05ff256

Browse files
committed
Don't install pytest from git to speedup tox
1 parent fe51212 commit 05ff256

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- name: Set up Python
1414
uses: actions/setup-python@v4
1515
with:

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
black:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
1313
uses: actions/setup-python@v4
1414
with:
@@ -21,7 +21,7 @@ jobs:
2121
flake8:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Set up Python
2626
uses: actions/setup-python@v4
2727
with:
@@ -34,7 +34,7 @@ jobs:
3434
mypy:
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
- name: Set up Python
3939
uses: actions/setup-python@v4
4040
with:
@@ -62,7 +62,7 @@ jobs:
6262
- "git+https://github.com/pytest-dev/pytest.git@main"
6363
runs-on: ubuntu-latest
6464
steps:
65-
- uses: actions/checkout@v3
65+
- uses: actions/checkout@v4
6666
with:
6767
fetch-depth: 2
6868
- name: Set up Python

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[tox]
2-
envlist = {py38,py39,py310,py311,py312,pypy3}-{pytestlatest,pytestmain},black,flake8,mypy
2+
envlist = {py38,py39,py310,py311,py312,pypy3}-{pytest7,pytest8,pytestlatest},black,flake8,mypy
33

44
[testenv]
55
commands =
66
coverage run --branch --source=pytest_unordered -m pytest tests/ {posargs}
77
deps =
88
coverage
99
codecov
10+
pytest7: pytest==7.4.4
11+
pytest8: pytest==8.1.1
1012
pytestlatest: pytest
11-
pytestmain: git+https://github.com/pytest-dev/pytest.git@main
1213

1314
[testenv:black]
1415
commands = black --check --diff .

0 commit comments

Comments
 (0)