Periodic Tests #113
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: Periodic Tests | |
on: | |
schedule: | |
- cron: "0 12 * * 0" # Noon on Sunday UTC | |
workflow_dispatch: | |
jobs: | |
periodic-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# using docker compose, so we can re-use local Dockerfiles | |
- name: starting up containers | |
working-directory: ./test/ | |
env: | |
# https://stackoverflow.com/a/52192327 | |
DOCKER_BUILDKIT: 1 | |
# https://stackoverflow.com/a/69500575 | |
BUILDKIT_PROGRESS: plain | |
run: docker compose up -d --build | |
- name: Run your tests | |
working-directory: ./test/ | |
# https://github.com/actions/runner/issues/241#issuecomment-577360161 | |
run: script -e -c "docker compose exec testing pytest -m periodic --base-url http://jb-com --junitxml report.xml" | |
- name: Publish Test Report | |
uses: dorny/test-reporter@v1 | |
with: | |
name: Periodic Tests | |
path: './report.xml' | |
reporter: java-junit |