-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (28 loc) · 740 Bytes
/
Copy pathbuild.yml
File metadata and controls
34 lines (28 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Python CI Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
# 1. Checkout source code
- name: Checkout repository
uses: actions/checkout@v4
# 2. Install Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
# 3. Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# 4. Run linting (code quality check)
- name: Run Flake8 Linting
run: |
pip install flake8
flake8 app --max-line-length=120