Skip to content

Commit

Permalink
Separate linting vs checking cruft into two pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
apockill committed Dec 4, 2024
1 parent 2490b00 commit 8e33cef
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint
on: [ push ]

jobs:
build:
check_lint:
runs-on: ubuntu-24.04

steps:
Expand All @@ -28,5 +28,29 @@ jobs:
run: sudo apt-get install --yes shellcheck
- name: Lint
run: poetry run lint --languages all --mode check
- name: Check Upstream Template
run: poetry run cruft check

check_upstream_template:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- name: pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: lint-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
lint-pip-
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry install
- name: Check Upstream Template
run: poetry run cruft check

0 comments on commit 8e33cef

Please sign in to comment.