-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (56 loc) · 1.73 KB
/
test-suite.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: test-suite
on: [pull_request]
env:
db_password: "postgres"
db_port: "5432"
jobs:
test:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
python_version: ["3.8.12", "3.9.10", "3.10.2"]
steps:
- uses: actions/checkout@v2
- name: Create dev database
uses: ./.github/actions/create-dev-database
with:
db_password: ${{ env.db_password }}
db_port: ${{ env.db_port }}
- name: Install dependencies
run: sudo apt-get install -y libpq-dev libgraphviz-dev
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- uses: actions/setup-node@v2
with:
node-version: "12"
- name: Set up frontend assets and install python dependencies
run: |
npm ci
npm start
pip install wheel
pip install .
- name: Set DATABASE_URL (using ansible)
run: >
cp webinterface/.env.template webinterface/.env &&
ansible localhost
-m lineinfile
-a "
path=webinterface/.env
regex=^DATABASE_URL
line='DATABASE_URL=psql://vast:vastpsw@localhost:${{ env.db_port }}/vastdb'
"
- name: Create database user and database name
run: >
python ./init-tools/init-db.py
localhost ${{ env.db_port }}
postgres ${{ env.db_password }}
vast vastpsw vastdb
- name: Make relevant directories
run: mkdir pipeline-runs
- name: Download regression test data
run: bash -e ./download.sh
working-directory: ./vast_pipeline/tests/regression-data
- name: Run tests
run: ./manage.py test