Skip to content

Commit

Permalink
Update ci-cd.yml
Browse files Browse the repository at this point in the history
Split off ruff to separate job
  • Loading branch information
joseph-jnl authored Oct 19, 2024
1 parent ca677fb commit 816ab7e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ permissions:
contents: read

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: "format --diff --target-version=py311"
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
Expand All @@ -26,13 +31,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest ruff
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint code with Ruff
run: ruff check --output-format=github --target-version=py311
- name: Check code formatting with Ruff
run: ruff format --diff --target-version=py311
continue-on-error: true
- name: Test with pytest
run: |
pytest

0 comments on commit 816ab7e

Please sign in to comment.