Skip to content

Tidying up around the project meta files #128

Tidying up around the project meta files

Tidying up around the project meta files #128

name: Type Coverage and Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.x"]
name: "Type Coverage and Linting @ ${{ matrix.python-version }}"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: "Setup Python @ ${{ matrix.python-version }}"
id: setup-python
uses: actions/setup-python@v6
with:
python-version: "${{ matrix.python-version }}"
cache: "pip"
- name: "Install Python deps @ ${{ matrix.python-version }}"
id: install-deps
run: |
pip install -Ur requirements.txt
- name: "Run Pyright @ ${{ matrix.python-version }}"
uses: jakebailey/pyright-action@v3
with:
annotate: ${{ matrix.python-version != '3.x' }}
warnings: false
- name: Setup Ruff
if: ${{ steps.install-deps.outcome == 'success' }}
uses: astral-sh/ruff-action@v3
- name: Ruff check
if: ${{ steps.install-deps.outcome == 'success' }}
run: "ruff check ."
- name: Ruff format check
if: ${{ steps.install-deps.outcome == 'success' }}
run: "ruff format --check ."