forked from edulinq/autograder-server
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.16 KB
/
main.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
name: Main
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
main:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.0'
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache Python Dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('_tests/requirements.txt') }}
- name: Install Python Interface
run: ./.ci/install-py-interface.sh 'main'
- name: Build
run: ./build.sh
- name: Run Base Tests
env:
AUTOGRADER__DOCKER__DISABLE: 'true'
run: ./test.sh
- name: Run Submission Tests
env:
AUTOGRADER__DOCKER__DISABLE: 'true'
run: ./.ci/run_remote_tests.sh
- name: Verify Python Interface Test Data
env:
AUTOGRADER__DOCKER__DISABLE: 'true'
run: ./.ci/verify-py-test-data.sh