Ruff check #25
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: Python package | |
on: | |
push: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install python3-opengl swig libgsl-dev | |
python -m pip install --upgrade pip | |
pip install ".[test]" | |
- name: Lint with Ruff | |
run: | | |
ruff check fastfiz_env | |
ruff format fastfiz_env | |
- name: Run MyPy | |
run: | | |
mypy fastfiz_env | |
- name: Test with pytest | |
run: | | |
pytest |