Skip to content

Restructure, cleanup and linting #10

Restructure, cleanup and linting

Restructure, cleanup and linting #10

Workflow file for this run

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 src/fastfiz_env
ruff format src/fastfiz_env
- name: Run MyPy
run: |
mypy src/fastfiz_env
- name: Test with pytest
run: |
pytest