Skip to content

Commit

Permalink
Use autograding v3.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Dec 1, 2023
1 parent ec17c36 commit f7622ec
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- main

pull_request:
branches:
- master
- main
jobs:
coverage:

Expand All @@ -30,12 +33,19 @@ jobs:
uses: codecov/codecov-action@v3.1.4
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Autograding
uses: uhafner/autograding-github-action@v2.1.0
- name: Obtain PR number to write the comments to
id: pr
run: |
PR_NUMBER=$(gh pr view --json "number" --jq ".number")
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Autograding
uses: uhafner/autograding-github-action@v3
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHECKS_NAME: 'Grading Badges'
CONFIG: >
github-token: ${{ secrets.GITHUB_TOKEN }}
checks-name: 'Grading Badges'
config: >
{
"tests": {
"tools": [
Expand Down

0 comments on commit f7622ec

Please sign in to comment.