Skip to content

Merge pull request #146 from fontra/dependabot/pip/python-packages-c8… #471

Merge pull request #146 from fontra/dependabot/pip/python-packages-c8…

Merge pull request #146 from fontra/dependabot/pip/python-packages-c8… #471

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Run pytest
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files --verbose --show-diff-on-failure
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install . --no-deps
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Test with pytest
run: |
pytest -vv
- name: Run mypy
run: |
mypy src/ tests/