-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (26 loc) · 909 Bytes
/
run_tests.yaml
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
name: run-unit-integration-tests-and-check-style
on:
workflow_call:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout-code
uses: actions/checkout@v4
- name: build-linter-image
run: docker build -f Dockerfile.linting -t app-tox-worker .
- name: check-linting-tests
run: docker run app-tox-worker tox
- name: build-unit-test-image
run: docker build --file Dockerfile.unit_tests --tag app_unit_tests .
- name: run-unit-tests
run: docker run --network=host --volume="$PWD/coverage/":/var/coverage/ app_unit_tests
- name: build-integration-test-image
run: docker build --file Dockerfile.integration_tests --tag app_integration_tests .
- name: run-integration-tests
run: docker run app_integration_tests