Fix style to keep ruff and black happy. #16
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: Lint and Test Python Code | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: # The name of the job | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install dev dependencies | |
run: | | |
python -m pip install --upgrade pip poetry | |
poetry install | |
- name: Run Ruff | |
run: poetry run ruff check --output-format=github && poetry run pycodestyle src | |
- name: Run tests under Python ${{ matrix.python-version }} | |
run: poetry run make test |