Tbruand commited on
Commit
914a948
·
1 Parent(s): 59c0077

ci(github): ajoute un workflow GitHub Actions pour lancer les tests pytest

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +31 -0
.github/workflows/ci.yml CHANGED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches: [main, dev]
8
+ pull_request:
9
+ branches: [main, dev]
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v4
21
+ with:
22
+ python-version: '3.10'
23
+
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install -r requirements.txt
28
+
29
+ - name: Run tests
30
+ run: |
31
+ pytest