-
Notifications
You must be signed in to change notification settings - Fork 23
34 lines (30 loc) · 928 Bytes
/
tests.yaml
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: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.9 on Ubuntu Focal
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Bootstrap everything
run: |
pip install -U "docker < 7" # compatibility issues; see https://github.com/docker/docker-py/issues/3194
pip install -U docker-compose
docker-compose up -d
docker-compose exec -T web pip install -r /code/config/requirements-dev.txt
- name: Run tests
run: |
docker-compose start
docker-compose exec -T web ./manage.py test -v2 --noinput