Skip to content

Moved some code from solvers to backend #1447

Moved some code from solvers to backend

Moved some code from solvers to backend #1447

Workflow file for this run

name: "Static type checking"
on: [push]
jobs:
test_types:
runs-on: ubuntu-latest
strategy:
matrix:
pyversion: ['3.9', '3.13']
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
# install all requirements. Note that the full requirements are installed separately
# so the job does not fail if one of the packages cannot be installed. This allows
# testing the package for newer python version even when some of the optional
# packages are not yet available.
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
cat tests/requirements_full.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -I % sh -c "pip install % || true"
pip install -r tests/requirements.txt
pip install types-PyYAML
- name: Test types with mypy
continue-on-error: true
run: |
python -m mypy --config-file pyproject.toml --pretty --package pde