Skip to content

Merge branch 'master' into snyk-fix-fcd6018f6c54219238f772fd46115704 #7

Merge branch 'master' into snyk-fix-fcd6018f6c54219238f772fd46115704

Merge branch 'master' into snyk-fix-fcd6018f6c54219238f772fd46115704 #7

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
python: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Lint with Ruff
run: |
pip install ruff
ruff check --output-format=github .
continue-on-error: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi
pip install coveralls
pip install mypy
python -m pip install --editable .
- name: Run tests
run: |
make quick_test
make test_coverage
#make typecheck