Skip to content

style: ruff-format the review-gate tests (fixes red main from #70) #131

style: ruff-format the review-gate tests (fixes red main from #70)

style: ruff-format the review-gate tests (fixes red main from #70) #131

Workflow file for this run

name: CI
# Lint + test the plugin. Runs on the org's Namespace Linux profile (not a
# GitHub-hosted runner) to keep CI cost down — the same profile the rest of the
# org's repos use. Falls back to a hosted runner on a fork that lacks the
# profile by overriding the NSC_RUNNER repo variable.
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ${{ vars.NSC_RUNNER || 'namespace-profile-protolabs-linux' }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dev deps
# Pin ruff — an unpinned `ruff` floats to latest, which formats differently
# than the dev's ruff, so `ruff format --check` fails on already-formatted
# files (main carried this mismatch). Pin both sides to keep them in step.
run: pip install -r requirements-dev.txt ruff==0.15.10
- name: Lint
run: ruff check . && ruff format --check .
- name: Test
run: pytest -q