Skip to content

Commit 7553147

Browse files
authored
ci: fix workflow file with correct YAML structure
1 parent 5e378a7 commit 7553147

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
1-
ci: add GitHub Actions workflow with pytest + coverage
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.9", "3.10", "3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -e ".[dev]"
28+
29+
- name: Run tests with coverage
30+
run: |
31+
pytest --cov=synapse_memory --cov-report=xml -q
32+
33+
- name: Upload coverage to Codecov
34+
if: matrix.python-version == '3.11'
35+
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)