Skip to content

Commit ee8f1aa

Browse files
authored
Merge pull request #8 from addok/ci
Add GitHub Actions CI Workflow
2 parents 1aacf16 + 377dcce commit ee8f1aa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.14']
15+
fail-fast: false
16+
services:
17+
redis:
18+
image: redis
19+
options:
20+
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s
21+
--health-retries 5
22+
ports:
23+
- 6379:6379
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install -e ".[dev]"
37+
38+
- name: Run tests with pytest
39+
run: |
40+
pytest --cov=addok_fr --cov-report=term-missing

0 commit comments

Comments
 (0)