Pipeline version upgrade #554
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 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: | |
- master | |
- '*' | |
jobs: | |
test_on_python_version: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.10", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install linters | |
run: | | |
pip install black==24.2.0 | |
pip install ruff | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Lint with ruff | |
run: | | |
ruff check . | |
- name: Lint with black | |
run: | | |
black . --check | |
- name: Test with pytest | |
run: | | |
pytest -v |