Skip to content

Commit 41e5b31

Browse files
committedJan 30, 2020
Add build to lint and test stage, fix readme typo
1 parent dcc4534 commit 41e5b31

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed
 

‎.github/workflows/main.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,20 @@ jobs:
1515
python-version: '3.6.x'
1616
- name: Check out code
1717
uses: actions/checkout@v1
18-
- name: Lint and test
18+
- name: Lint, test and build
1919
run: |
2020
pip install -r requirements-dev.txt
2121
pip install -r requirements.txt
2222
make lint
2323
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}
2432
- uses: codecov/codecov-action@v1.0.3
2533
if: github.repository == 'jthomperoo/locust-pod-autoscaler'
2634
with:

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ Developing this project requires these dependencies:
3636

3737
Python development dependencies can be installed with:
3838
```bash
39-
pip install -f requirements-dev.txt
39+
pip install -r requirements-dev.txt
4040
```
4141

4242
Project dependencies can be installed with:
4343
```bash
44-
pip install -f requirements.txt
44+
pip install -r requirements.txt
4545
```
4646

4747
To view docs locally, requires:

0 commit comments

Comments
 (0)
Please sign in to comment.