Skip to content

chore(deps): update actions/checkout action to v7 #911

chore(deps): update actions/checkout action to v7

chore(deps): update actions/checkout action to v7 #911

Workflow file for this run

name: tests
on: [push, pull_request]
permissions:
contents: read
jobs:
lint-mypy:
name: Lint, Mypy
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
- name: Check code quality with flake8
run: tox -e lint
- name: Check static typing with MyPy
run: tox -e mypy
tests:
name: Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
- name: Test with pytest and generate coverage file
run: tox -e py
- name: Upload coverage report to codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
if: success()
with:
file: coverage.xml