amine-yagoub commited on
Commit
497786e
·
1 Parent(s): 64d4a2f

ci: add automated testing workflow for Python 3.11 and 3.12

Browse files
Files changed (1) hide show
  1. .github/workflows/tests.yml +31 -0
.github/workflows/tests.yml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Tests
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.11", "3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v4
21
+
22
+ - name: Set up Python ${{ matrix.python-version }}
23
+ run: uv python install ${{ matrix.python-version }}
24
+
25
+ - name: Install dependencies
26
+ run: |
27
+ uv venv --python ${{ matrix.python-version }}
28
+ uv pip install -e ".[dev]"
29
+
30
+ - name: Run tests
31
+ run: python -m pytest tests/ -v