Update locust/requirements.txt #511
This file contains hidden or 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: | |
| paths: | |
| - '**' | |
| env: | |
| ORG: opendatacube | |
| IMAGE: wps | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v2 | |
| - name: Pre-pull layers | |
| run: docker compose pull | |
| - name: Build WPS image | |
| run: docker compose build | |
| - name: Bring up containers | |
| run: | | |
| mkdir -p ./artifacts | |
| chmod a+rw ./artifacts | |
| docker compose up -d | |
| # wait until db server is ready for connections | |
| until docker compose exec -T postgres pg_isready ; do sleep 1 ; done | |
| - name: Populate sample database | |
| run: ./setup-db.sh | |
| - name: Run test suite | |
| run: | | |
| docker compose exec -e WPS_BASEURL=/ -T wps pytest -v --cov=./datacube_wps --cov-report=xml tests/ | |
| docker compose down | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v1 | |
| with: | |
| file: ./artifacts/*.xml | |
| fail_ci_if_error: false |