Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
build:
name: 'Python runtime ${{ matrix.versions.python }}'
runs-on: '${{ matrix.versions.os || matrix.os }}'
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/
if: >
Expand Down Expand Up @@ -42,8 +43,6 @@ jobs:
min-deps: '--force-dep pytest==4.6'
- python: 'pypy-3.9'
min-deps: '--force-dep pytest==4.6'
force-min-deps: [false, true]
extra: ['', '-smtp']
fail-fast: false

steps:
Expand All @@ -53,9 +52,13 @@ jobs:
with:
python-version: ${{ matrix.versions.python }}
allow-prereleases: true
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with tox
run: tox -vv -e py${{ matrix.extra }} ${{ matrix.force-min-deps && matrix.versions.min-deps || '' }}
run: tox -vv -e py,py-smtp
- name: Test with tox with forced minimum dependencies
if: matrix.versions.min-deps
run: tox -vv -e py,py-smtp ${{ matrix.versions.min-deps }}