Skip to content

cicd: mypyc

cicd: mypyc #107

Workflow file for this run

name: Run all tests
on:
pull_request:
push:
release:
types: published
schedule:
- cron: 0 0 1 * * # Run once every month
jobs:
run-pytest:
strategy:
fail-fast: false
matrix:
py: [ '3.10', '3.11', '3.12', '3.13', '3.14' ]
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
- name: "Install requirements"
run: |
python -m pip install -r requirements-dev.txt
- name: "Run pytest"
run: |
pytest -vvv --typeguard-packages=cmake_file_api
check-typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- run: pip install mypy
- run: mypy --install-types --non-interactive
mypyc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
py: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
- run: pip install -r requirements-dev.txt
- run: |
mypyc --strict
python setup.py bdist_wheel --outdir wheelhouse
pip install --no-deps --no-index --find-links=wheelhouse/ cmake_file_api
pytest --log-cli-level=info -vvv tests/