-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 1.14 KB
/
tests.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
name: Tests
on:
pull_request:
branches: [ dev ]
jobs:
unit_testing:
runs-on: ubuntu-latest
strategy:
matrix:
pythonversion: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.pythonversion }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pythonversion }}
- uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dashboard_viewer/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup Data Containers
run: |
cd tests
export $(grep -v '^#' .env | xargs -d '\n')
docker-compose up -d
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r dashboard_viewer/requirements.txt
- name: tests
run: |
export $(grep -v '^#' tests/.env | xargs -d '\n')
cd dashboard_viewer
python manage.py test --exclude-tag third-party-app
#SINGLE_APPLICATION_MODE=n MAIN_APPLICATION_HOST=mainapp.host.com python manage.py test --tag third-party-app