generated from bmstu-rsoi/lab4-template
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.34 KB
/
classroom.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
name: GitHub Classroom Workflow
on:
push:
branches: [ master ]
jobs:
build:
name: Autograding
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v2
# TODO build, publish to docker hub, deploy to k8s
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and publish images
timeout-minutes: 15
run: |
sudo chmod +x ./scripts/build-images.sh
./scripts/build-images.sh
- name: Run API Tests
uses: matt-ball/newman-action@master
with:
collection: v2/postman/collection.json
environment: v2/postman/environment.json
delayRequest: 100
reporters: '[ "cli" ]'
- uses: education/autograding@v1
id: autograder
continue-on-error: true
- name: Github auto grader mark
uses: Romanow/google-sheet-autograder-marker@v1.0
with:
google_token: ${{secrets.GOOGLE_API_KEY}}
sheet_id: "1xkgjUX6Qmk7rdJG-QPOToav-HWWtthJjnShIKnw3oIY"
homework_number: 4
user_column: 'D'
column_offset: 'F'
mark: "'+"