-
Notifications
You must be signed in to change notification settings - Fork 22
62 lines (53 loc) · 1.69 KB
/
coverage.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: CFG code coverage
on:
pull_request:
branches:
- 'master'
paths:
- '**'
- '.github/workflows/coverage.yaml'
- 'dev/wms/ows_refactored'
- 'prod/wms/ows_refactored'
push:
branches:
- 'master'
paths:
- '**'
- '.github/workflows/coverage.yaml'
- 'dev/wms/ows_refactored'
- 'prod/wms/ows_refactored'
jobs:
cfg-code-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Dockerized cfg coverage Pytest (dev)
run: |
mkdir artifacts
chmod a+rw artifacts
docker-compose -f docker-compose.ows.yaml up -d
docker-compose -f docker-compose.ows.yaml exec -T ows /bin/sh -c "cd /dea-config;./check-coverage.sh"
docker-compose -f docker-compose.ows.yaml down
env:
OWS_CFG_PATH: dev/services/wms/ows_refactored
PYTHON_PATH: dev/services/wms/
DATACUBE_OWS_CFG: ows_refactored.ows_root_cfg.ows_cfg
- name: Dockerized cfg coverage Pytest (prod)
run: |
mv ./artifacts/coverage.xml ./artifacts/dev_coverage.xml
docker-compose -f docker-compose.ows.yaml up -d
docker-compose -f docker-compose.ows.yaml exec -T ows /bin/sh -c "cd /dea-config;./check-coverage.sh"
docker-compose -f docker-compose.ows.yaml down
env:
OWS_CFG_PATH: prod/services/wms/ows_refactored
PYTHON_PATH: prod/services/wms/
DATACUBE_OWS_CFG: ows_refactored.ows_root_cfg.ows_cfg
- name: Upload All coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./artifacts/*.xml
fail_ci_if_error: false