Move the operator registry from individual backends to the registry c… #1450
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |