-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (29 loc) · 964 Bytes
/
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
name: Tests
'on': [push, pull_request]
jobs:
Build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- run: docker build --tag webproj .
- run: 'docker run -d -p 80:80 --name restapi webproj'
- run: docker ps
- run: sudo apt-get update
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
environment-file: environment-dev.yaml
auto-activate-base: false
activate-environment: webproj
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Pytest
run: pytest --cov
- run: curl -s localhost/v1.0/trans/EPSG:4258/DK:S34S/55.0,12.0 > S34S.out
- run: cat S34S.out
- run: diff test_s34s.out S34S.out