Skip to content

Commit

Permalink
feat: add a grader to verify and score the submission
Browse files Browse the repository at this point in the history
Signed-off-by: Anmol Sharma <[email protected]>

feat: try using setup script for grading

Signed-off-by: Anmol Sharma <[email protected]>

feat: remove unnecessary files

Signed-off-by: Anmol Sharma <[email protected]>

chore: remove grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use custom grading actions v2

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use latest version of grader

Signed-off-by: Anmol Sharma <[email protected]>

feat: use custome grader action

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>

chore: increase passing score to 60

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>

chore: use latest autograder

Signed-off-by: Anmol Sharma <[email protected]>
  • Loading branch information
theanmolsharma committed Mar 20, 2024
1 parent af48b0f commit a4be518
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Autograding Tests
'on':
- push
- workflow_dispatch
- repository_dispatch
permissions:
checks: write
actions: read
contents: read
jobs:
run-autograding-tests:
runs-on: ubuntu-latest
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
Empty file added .gitignore
Empty file.
4 changes: 4 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd ./grader || exit
npm install

npm run verify-block

0 comments on commit a4be518

Please sign in to comment.