-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (48 loc) · 1.24 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: test
on:
push:
branches:
- master
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
lfs: true
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Cache virtualenv
uses: actions/cache@v3
id: cache-pip
with:
path: venv
key: venv-${{ hashFiles('requirements.txt') }}-0.4.1-0.1.0
- name: Install dependencies in a venv
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
python3 -m venv venv
. venv/bin/activate
pip install -q -U pip
pip install --progress-bar=off -r requirements.txt
- name: Docker build
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: covid19
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run lint checks & tests
run: |
. venv/bin/activate
make test
- name: Upload Report PDFs
uses: actions/upload-artifact@v2
with:
name: example reports
path: report-*.pdf