File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,20 @@ jobs:
15
15
python-version : ' 3.6.x'
16
16
- name : Check out code
17
17
uses : actions/checkout@v1
18
- - name : Lint and test
18
+ - name : Lint, test and build
19
19
run : |
20
20
pip install -r requirements-dev.txt
21
21
pip install -r requirements.txt
22
22
make lint
23
23
make unittest
24
+ # Build
25
+ if [ ${{ github.event_name }} == "release" ]; then
26
+ # github.ref is in the form refs/tags/VERSION, so apply regex to just get version
27
+ VERSION=$(echo "${{ github.ref }}" | grep -P '([^\/]+$)' -o)
28
+ else
29
+ VERSION=$(git rev-parse --short ${{ github.sha }})
30
+ fi
31
+ make docker VERSION=${VERSION}
24
32
- uses : codecov/codecov-action@v1.0.3
25
33
if : github.repository == 'jthomperoo/locust-pod-autoscaler'
26
34
with :
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ Developing this project requires these dependencies:
36
36
37
37
Python development dependencies can be installed with:
38
38
``` bash
39
- pip install -f requirements-dev.txt
39
+ pip install -r requirements-dev.txt
40
40
```
41
41
42
42
Project dependencies can be installed with:
43
43
``` bash
44
- pip install -f requirements.txt
44
+ pip install -r requirements.txt
45
45
```
46
46
47
47
To view docs locally, requires:
You can’t perform that action at this time.
0 commit comments