Skip to content

Commit

Permalink
workflows: add lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Aug 19, 2024
1 parent 3b2c7a6 commit 901bfde
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Lint

on:
pull_request:
push:
branches:
- 'master'

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: run lint scripts
run: |
for f in lint/lint_*.py; do
if ! python $f; then
echo "errors from $f ^^^^"
exit 1
fi
done

0 comments on commit 901bfde

Please sign in to comment.