Bump astral-sh/ruff-action from 2 to 3 (#24) #97
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: Type Coverage and Linting | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: [opened, reopened, synchronize] | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8', '3.x' ] | |
name: "Type Coverage and Linting @ ${{ matrix.python-version }}" | |
steps: | |
- name: "Checkout Repository" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PDM @ ${{ matrix.python-version }} | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: true | |
- name: Install deps @ ${{ matrix.python-version }} | |
run: | | |
pdm install --check --no-editable | |
- name: Activate venv @ ${{ matrix.python-version }} | |
run: | | |
echo "$(pdm info --where)/.venv/bin" >> $GITHUB_PATH | |
- name: "Run Pyright @ ${{ matrix.python-version }}" | |
uses: jakebailey/pyright-action@v2 | |
with: | |
warnings: false | |
annotate: "${{ matrix.python-version != '3.x' }}" | |
- name: Lint check | |
uses: astral-sh/ruff-action@v3 | |
with: | |
args: check . | |
- name: Formatting check | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: format --check |