Skip to content

Commit 9bc3c59

Browse files
authored
Merge pull request #131 from pytest-dev/consolidate-tests/1/dev
Consolidate tests
2 parents a177a59 + 29b2195 commit 9bc3c59

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
build:
9+
name: 'Python runtime ${{ matrix.versions.python }}'
910
runs-on: '${{ matrix.versions.os || matrix.os }}'
1011
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/
1112
if: >
@@ -42,8 +43,6 @@ jobs:
4243
min-deps: '--force-dep pytest==4.6'
4344
- python: 'pypy-3.9'
4445
min-deps: '--force-dep pytest==4.6'
45-
force-min-deps: [false, true]
46-
extra: ['', '-smtp']
4746
fail-fast: false
4847

4948
steps:
@@ -53,9 +52,13 @@ jobs:
5352
with:
5453
python-version: ${{ matrix.versions.python }}
5554
allow-prereleases: true
55+
cache: 'pip'
5656
- name: Install dependencies
5757
run: |
5858
python -m pip install --upgrade pip
5959
pip install tox
6060
- name: Test with tox
61-
run: tox -vv -e py${{ matrix.extra }} ${{ matrix.force-min-deps && matrix.versions.min-deps || '' }}
61+
run: tox -vv -e py,py-smtp
62+
- name: Test with tox with forced minimum dependencies
63+
if: matrix.versions.min-deps
64+
run: tox -vv -e py,py-smtp ${{ matrix.versions.min-deps }}

0 commit comments

Comments
 (0)