-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.82 KB
/
pull-request.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
43
44
45
46
47
48
49
50
51
name: Pull Request CI
on:
- pull_request
permissions:
id-token: write
contents: read
jobs:
run-tests-in-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 2
- name: Run Golang tests in Docker
run: |
DOCKER_BUILDKIT=1 docker build --target test-golang -t test-golang -f build_setup/Dockerfile .
docker run --rm --entrypoint cat test-golang coverage.out > golang-coverage.out
docker run --rm --entrypoint cat test-golang coverage.html > golang-coverage.html
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: golang-coverage
path: golang-coverage.*
- name: Run Python tests in Docker
run: |
DOCKER_BUILDKIT=1 docker build --target test-python -t test-python -f build_setup/Dockerfile .
docker run --rm --entrypoint cat test-python coverage.xml > python-coverage.xml
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: python-coverage.xml
path: python-coverage.xml
- name: Run Python Lambda tests in Docker
run: |
DOCKER_BUILDKIT=1 docker build --target test-python-lambda -t test-python-lambda -f build_setup/Dockerfile .
docker run --rm --entrypoint cat test-python-lambda coverage.xml > python-lambda-coverage.xml
- uses: actions/upload-artifact@v3
with:
name: python-lambda-coverage.xml
path: python-lambda-coverage.xml
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
with:
files: python-coverage.xml,golang-coverage.out
flags: unittests
fail_ci_if_error: false
verbose: true