Split /entity/{etype}
for performance reasons.
#282
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: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
api-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup running platform stack | |
run: docker compose up --build -d | |
- name: Pause for stack to start | |
run: sleep 10 | |
- name: Integration tests - API | |
run: docker run | |
--env CONF_DIR=/dp3/tests/test_config | |
--network container:dp3_api | |
dp3_interpreter python -m unittest discover -s tests/test_api -v | |
- name: Dump Logs on Failure | |
if: failure() | |
run: docker compose logs | |
- name: Check worker errors | |
run: docker compose logs worker | grep "WARNING\|ERROR\|exception" | grep -v "RabbitMQ\|it's\ OK\ now,\ we're\ successfully\ connected" || true | |
- name: Teardown platform stack | |
run: docker compose down | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Test | |
run: docker build -f docker/python/Dockerfile --target base -t dp3_interpreter . | |
- name: Test | |
run: docker run dp3_interpreter python -m unittest discover -s tests/test_common |