Skip to content

Merge pull request #14 from pallets-eco/dependabot/pip/requirements/p… #27

Merge pull request #14 from pallets-eco/dependabot/pip/requirements/p…

Merge pull request #14 from pallets-eco/dependabot/pip/requirements/p… #27

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- '*.x'
pull_request:
jobs:
tests:
name: ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.12', '3.11', '3.10', '3.9', '3.8']
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
cache: pip
cache-dependency-path: requirements/*.txt
- run: pip install tox
- run: tox run -e py${{ matrix.python }}
typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: '3.x'
cache: pip
cache-dependency-path: requirements/*.txt
- name: cache mypy
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: ./.mypy_cache
key: mypy|${{ hashFiles('pyproject.toml') }}
- run: pip install tox
- run: tox run -e typing