2 parents fe37126 + b244f8f commit 01766dcCopy full SHA for 01766dc
1 file changed
.github/workflows/lint.yml
@@ -0,0 +1,33 @@
1
+name: Lint Python Code
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ - github-actions-tutorial
8
9
+ push:
10
11
12
13
+ workflow_dispatch:
14
15
+jobs:
16
+ lint:
17
+ runs-on: ubuntu-latest
18
19
+ steps:
20
+ - uses: actions/checkout@v4
21
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.13"
25
+ cache: "pip"
26
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install ruff
31
32
+ - name: Run Ruff
33
+ run: ruff check --output-format=github
0 commit comments