-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (31 loc) · 901 Bytes
/
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
name: Test
on:
pull_request:
push:
env:
PIPENV_VENV_IN_PROJECT: enabled
jobs:
make-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install pipenv
run: python -m pip install --upgrade pipenv==2021.5.29 wheel
- name: Restore pipenv cache
id: cache-pipenv
uses: actions/cache@v2
with:
path: ./.venv
key: test-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv lock && pipenv install --deploy --dev
- name: Run make test
run: pipenv run make test