-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (38 loc) · 1.06 KB
/
testing.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Testing
on:
push:
branches: [ "update", "add-testing" ]
pull_request:
branches: [ "update" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# need checkout before using compose-action
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
environment-file: tests/testing.yaml
channels: conda-forge,defaults
activate-environment: test
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- uses: isbang/[email protected]
with:
compose-file: "./docker-compose.test.yml"
#down-flags: "--volumes"
services: |
test_database
test_backend
test_reverse-proxy
- name: populate db
# conda setup requires this special shell
shell: bash -l {0}
run: |
sudo apt-get install -y postgresql
psql -U postgres -h localhost -f tests/db/test_db_small.sql
- name: run tests
shell: bash -l {0}
run: pytest -v