Skip to content

Commit 09a6a37

Browse files
committed
Add local pytest dev tox env
1 parent 8c10362 commit 09a6a37

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
if-no-files-found: error
102102

103103
test-pytest-dev:
104-
name: ubuntu - Python ${{ env.PYTHON_LATEST }} - pytest main
104+
name: ubuntu - Python latest - pytest main
105105
runs-on: ubuntu-latest
106106
continue-on-error: true
107107
steps:
@@ -116,11 +116,9 @@ jobs:
116116
python -VV
117117
python -m site
118118
python -m pip install --upgrade pip
119-
python -m pip install --upgrade \
120-
".[testing]" \
121-
"pytest @ git+https://github.com/pytest-dev/pytest.git"
119+
python -m pip install --upgrade tox
122120
- name: Run tests against pytest main
123-
run: make test
121+
run: python -m tox run -e pytest-dev
124122

125123
lint-github-actions:
126124
name: Lint GitHub Actions

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ commands = make test
4040
allowlist_externals =
4141
make
4242

43+
[testenv:pytest-dev]
44+
description = Run tests against pytest main
45+
constraints =
46+
deps =
47+
pytest @ git+https://github.com/pytest-dev/pytest.git
48+
4349
[testenv:docs]
4450
allowlist_externals =
4551
git

0 commit comments

Comments
 (0)