This file contains 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: Build, Check and Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies and Build package | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install .["git_ci"] | |
- name: Run format check | |
run: | | |
black --check --diff --color ./examples ./src ./tests | |
- name: Run Import sort check | |
run: | | |
isort --check --diff --color ./examples ./src ./tests | |
- name: Run static type check | |
run: | | |
pyright | |
- name: Run Python lint check | |
run: | | |
ruff check ./examples ./src ./tests | |
- name: Run Cython check | |
run: | | |
cython-lint src/robust_hermite_ft/hermite_functions/_c_hermite.pyx | |
- name: Run tests | |
run: | | |
pytest -n=auto -x |