-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (38 loc) · 1.08 KB
/
consistency_test.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
name: consistency_test
on:
push:
branches:
- 'master'
paths:
- 'src/**'
- 'docker/**'
- '.github/**'
pull_request:
branches:
- '*'
paths:
- 'src/**'
- 'docker/**'
- '.github/**'
jobs:
consistency-test:
name: build docker and run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download test data
run: |
pip install zenodo_get && \
zenodo_get 7040177 -o /tmp/ && \
7z x /tmp/venus_clouds_v1.0.7z -o/tmp/training_data && \
rm /tmp/training_data/training_set_clouds_multiclass/s*
- name: Build docker
run: docker build docker/docker-cpu -t docker-cpu:1.0
- name: pytest
run: |
docker run --rm -v /tmp:/tmp:rw -v ${GITHUB_WORKSPACE}/src:/src:ro -e PYTHONPATH=/usr/local/lib/python3.6/dist-packages:/usr/local/lib/python3/dist-packages:/src --cpus=2 -m 20g docker-cpu:1.0 pytest src/test/consistency_test.py