Skip to content

[pre-commit.ci] pre-commit autoupdate #327

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #327

Workflow file for this run

name: Run tests with tox
on:
- push
- pull_request
jobs:
build:
runs-on: '${{ matrix.os }}'
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/
if: >
github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
matrix:
# Not all Python versions are available for linux AND x64
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
os: ['ubuntu-latest']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
extra: ['', '-smtp']
# The forced pytest versions correspond with the lower bounds in tox.ini
pytest-version: ['', '--force-dep pytest==4.6', '--force-dep pytest==6.2.4']
include:
- os: 'ubuntu-20.04'
python-version: '3.6'
exclude:
- python-version: '3.10'
pytest-version: '--force-dep pytest==4.6'
- python-version: '3.11'
pytest-version: '--force-dep pytest==4.6'
- python-version: '3.12'
pytest-version: '--force-dep pytest==4.6'
- python-version: '3.13'
pytest-version: '--force-dep pytest==4.6'
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- 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.pytest-version }}