-
Notifications
You must be signed in to change notification settings - Fork 64
57 lines (47 loc) · 1.18 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Workflow for running the test suite
name: Run tests
on:
push:
branches:
- master
- stable
- beta
pull_request:
branches:
- master
- stable
- beta
jobs:
build:
runs-on: ubuntu-latest
env:
TAR: /bin/tar
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
with:
install: true
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
load: true
push: false
tags: otter-test
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
DOCKER_VERSION=20.10.24
- name: Run tests
run: |
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp otter-test /root/otter-grader/bin/run_tests
cp /tmp/coverage.xml ./coverage.xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true