-
Notifications
You must be signed in to change notification settings - Fork 50
35 lines (30 loc) · 1 KB
/
periodic_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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