Skip to content

Commit 3e570a1

Browse files
lakshmisravya123lakshmisravya123
authored andcommitted
Add GitHub Actions CI workflow
1 parent 7178c18 commit 3e570a1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 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+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install numpy scikit-learn matplotlib joblib
25+
- name: Verify project runs
26+
run: |
27+
python -c "import numpy, sklearn; print('Dependencies OK')"
28+
ls *.py && echo "Source files found"

0 commit comments

Comments
 (0)