Always record wet and dry pixel numbers and areas #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
env: | |
ORG: victorianeema | |
IMAGE: deafrica-conflux | |
PRODUCT_CATALOG: https://raw.githubusercontent.com/digitalearthafrica/config/master/prod/products_prod.csv | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Activate Docker cache | |
uses: satackey/[email protected] | |
# Ignore the failure of a step and avoid terminating the job. | |
continue-on-error: true | |
- name: Setup deafrica-conflux test environment | |
run: | | |
make test-env | |
- name: Run deafrica-conflux test | |
run: | | |
docker-compose exec -T conflux bash -c "coverage run -m pytest ." | |
docker-compose exec -T conflux bash -c "coverage report -m" | |
docker-compose exec -T conflux bash -c "coverage xml" | |
docker-compose exec -T conflux bash -c "coverage html" | |
make down | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: false | |
- name: Clean deafrica-conflux image | |
run: | | |
(echo y) | docker container prune | |
(echo y) | docker image prune |