File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
6
6
jobs :
7
- test :
7
+ lint :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v4
@@ -31,12 +31,39 @@ jobs:
31
31
32
32
- name : Set up environment vars
33
33
run : |
34
- cp env.example src/tp .env
34
+ cp env.example src/.env
35
35
36
36
- name : Run the linter
37
37
run : |
38
38
source .venv/bin/activate
39
39
make lint
40
+ test :
41
+ runs-on : ubuntu-latest
42
+ needs : lint
43
+ services :
44
+ rabbitmq :
45
+ image : rabbitmq:3.12.14-management-alpine
46
+ ports :
47
+ - 5672:5672
48
+
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+
52
+ - uses : actions/setup-python@v5
53
+ id : setup-python
54
+ with :
55
+ python-version-file : ' .python-version'
56
+
57
+ - name : Set up environment vars
58
+ run : |
59
+ cp env.example src/.env
60
+
61
+ - uses : actions/cache/restore@v4
62
+ id : cache-dependencies
63
+ with :
64
+ path : |
65
+ .venv
66
+ key : ${{ runner.os }}-venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/*requirements.txt') }}
40
67
41
68
- name : Run the tests
42
69
run : |
You can’t perform that action at this time.
0 commit comments