Use Flask application factory #1884
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: Tests | |
on: | |
pull_request: | |
paths: | |
- '**' | |
push: | |
branches: | |
- develop | |
paths: | |
- '**' | |
env: | |
IMAGE_NAME: opendatacube/explorer | |
jobs: | |
integration-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build Docker | |
run: | | |
make build | |
- name: Run tests | |
run: | | |
make up-d | |
sleep 10 | |
make create-test-db-docker | |
make test-docker | |
make docker-clean | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.xml | |
fail_ci_if_error: false |