-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.08 KB
/
unittest-workflow.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
name: Unittest xcube-stac
on:
push:
release:
types: [published]
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- name: checkout xcube
uses: actions/checkout@v4
with:
repository: xcube-dev/xcube
path: xcube
- name: checkout xcube-stac
uses: actions/checkout@v4
with:
path: xcube-stac
- name: Set up MicroMamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: xcube-stac/environment.yml
- name: Start xcube server
shell: bash -l {0}
run: |
cd /home/runner/work/xcube-stac/xcube-stac/xcube
ls
xcube serve -c examples/serve/demo/config.yml &
- name: Run unit tests
shell: bash -l {0}
run: |
cd /home/runner/work/xcube-stac/xcube-stac/xcube-stac
ls
pytest --cov=xcube_stac --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}