-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.09 KB
/
run_tests.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
36
37
38
39
40
41
42
# This workflow will build the service and test Docker images for the Swath
# Projector, then run the Python `unittest` suite within a test Docker
# container, reporting test results and code coverage as artefacts. It will be
# called by the workflow that run tests against new PRs and as a first step in
# the workflow that publishes new Docker images.
name: Run Python unit tests
on:
workflow_call
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout harmony-swath-projector repository
uses: actions/checkout@v3
with:
lfs: true
- name: Build service image
run: ./bin/build-image
- name: Build test image
run: ./bin/build-test
- name: Run test image
run: ./bin/run-test
- name: Archive test results
uses: actions/upload-artifact@v4
with:
name: Test results
path: test-reports/
- name: Archive coverage report
uses: actions/upload-artifact@v4
with:
name: Coverage report
path: coverage/*