-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 854 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (26 loc) · 854 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
# .github/workflows/ci.yml
on: [push, pull_request]
name: CI
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# If you have a requirements-dev.txt, prefer that (recommended)
if [ -f requirements-dev.txt ]; then
pip install --no-cache-dir -r requirements-dev.txt
else
# Fallback minimal deps (at least numpy required for tests)
pip install --no-cache-dir numpy scipy matplotlib scikit-learn sympy pytest flake8
fi
- name: Run tests
run: pytest -q
- name: Lint
run: flake8 --max-line-length=120 || true