From 8a4c7cc3adc9b1cca330e61c9bed396cd6d35673 Mon Sep 17 00:00:00 2001 From: Matt Thompson <31709066+thompsonmj@users.noreply.github.com> Date: Wed, 29 Jul 2026 18:56:52 -0400 Subject: [PATCH] Separate linting before tests --- .github/workflows/run-tests.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b290c21..8301234 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -5,7 +5,28 @@ on: push: jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - name: install dependencies + run: pip install .[dev] + shell: bash + + - name: run Ruff linter + run: ruff check . + shell: bash + run-tests: + needs: lint runs-on: ubuntu-latest strategy: matrix: @@ -24,10 +45,6 @@ jobs: run: pip install .[dev] shell: bash - - name: run Ruff linter - run: ruff check . - shell: bash - - name: run test run: pytest -rs shell: bash