File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint and Test
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ container :
9
+ image : divio/multi-python
10
+
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v5
17
+ with :
18
+ python-version : 3.9
19
+
20
+ - name : Cache dependencies
21
+ uses : actions/cache@v4
22
+ with :
23
+ path : ~/.cache/pip
24
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-pip-
27
+
28
+ - name : Install dependencies
29
+ run : |
30
+ pip install -r requirements.txt
31
+
32
+ - name : Run tests
33
+ run : |
34
+ bash download_fixtures.sh
35
+ tox
36
+
37
+ - name : Upload coverage to GitHub Artifacts
38
+ uses : actions/upload-artifact@v4
39
+ with :
40
+ name : coverage
41
+ path : htmlcov/
You can’t perform that action at this time.
0 commit comments