Skip to content

Merge pull request #140 from learningequality/rtibbles-patch-1 #153

Merge pull request #140 from learningequality/rtibbles-patch-1

Merge pull request #140 from learningequality/rtibbles-patch-1 #153

Workflow file for this run

name: Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre_job:
name: Path match check
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ github.token }}
paths_ignore: '["**.po", "**.json"]'
linting:
name: All file linting
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: pre-commit/[email protected]