Skip to content

Commit d5039d0

Browse files
Add automated Python CI
This workflow sets up a continuous integration pipeline for Python projects, including steps to check out the repository, set up Python, install dependencies, compile the source code, and run the training pipeline.
1 parent 130ca3e commit d5039d0

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
- name: Install dependencies
20+
run: pip install -r requirements.txt
21+
- name: Compile source
22+
run: python -m py_compile train.py
23+
- name: Run training pipeline
24+
run: python train.py

0 commit comments

Comments
 (0)