forked from edulinq/autograder-server
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.35 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
56
57
58
59
60
61
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('testdata/requirements.txt') }}
- name: Install Python Interface
run: ./.ci/install_py_interface.sh 'main'
- name: Build
run: ./scripts/build.sh
- name: Check Formatting
run: ./scripts/check_formatting.sh
- name: Check Duplicate API Locators
run: ./scripts/check_duplicate_api_locators.sh
- name: Run Base Tests
env:
AUTOGRADER__DOCKER__DISABLE: 'true'
run: ./scripts/run_tests.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