-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 799 Bytes
/
test.yml
File metadata and controls
33 lines (32 loc) · 799 Bytes
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
name: test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Cache virtualenv
uses: actions/cache@v1
id: cache-pip
with:
path: venv
key: venv-${{ hashFiles('requirements.txt') }}
- name: Install dependencies in a venv
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
python -m venv venv
. venv/bin/activate
pip install -q -U pip
pip install --progress-bar=off -r requirements.txt
- name: Run tests
run: |
. venv/bin/activate
make test