forked from SummerOfBitcoin/code-challenge-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.08 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
name: Autograding Tests
'on':
- push
- workflow_dispatch
- repository_dispatch
permissions:
checks: write
actions: read
contents: read
jobs:
run-autograding-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.actor != 'github-classroom[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download mempool
uses: GuillaumeFalourd/[email protected]
with:
owner: 'SummerOfBitcoin'
repository: 'code-challenge-2024-mempool'
- name: Validate block
id: validate-block
uses: SummerOfBitcoin/[email protected]
with:
test-name: 'Validate block '
command: chmod +x ./run.sh && ./run.sh
timeout: 10
max-fee: 20616923
max-score: 100
passing-score: 60
- name: Autograding Reporter
uses: SummerOfBitcoin/[email protected]
env:
VALIDATE-BLOCK_RESULTS: "${{steps.validate-block.outputs.result}}"
with:
runners: validate-block