Skip to content

Commit

Permalink
Don't install pytest from git to speedup tox
Browse files Browse the repository at this point in the history
  • Loading branch information
utapyngo committed Mar 13, 2024
1 parent fe51212 commit 05ff256
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -21,7 +21,7 @@ jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -34,7 +34,7 @@ jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- "git+https://github.com/pytest-dev/pytest.git@main"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[tox]
envlist = {py38,py39,py310,py311,py312,pypy3}-{pytestlatest,pytestmain},black,flake8,mypy
envlist = {py38,py39,py310,py311,py312,pypy3}-{pytest7,pytest8,pytestlatest},black,flake8,mypy

[testenv]
commands =
coverage run --branch --source=pytest_unordered -m pytest tests/ {posargs}
deps =
coverage
codecov
pytest7: pytest==7.4.4
pytest8: pytest==8.1.1
pytestlatest: pytest
pytestmain: git+https://github.com/pytest-dev/pytest.git@main

[testenv:black]
commands = black --check --diff .
Expand Down

0 comments on commit 05ff256

Please sign in to comment.