Skip to content

Commit 01766dc

Browse files
Merge pull request #1 from Sanjay-python27/github-actions-tutorial
GitHub actions tutorial
2 parents fe37126 + b244f8f commit 01766dc

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
branches:
11+
- master
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

Comments
 (0)