Skip to content

.

. #4

name: Regression Test the Grader
permissions:
id-token: write
contents: read
on:
push:
branches:
- main
jobs:
build-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Install OIDC Client from Core Package
run: npm install @actions/core@1.11.1 @actions/http-client
- name: Get Id Token
uses: actions/github-script@v7
id: idtoken
with:
script: |
const coredemo = require('@actions/core')
let id_token = await coredemo.getIDToken()
coredemo.setOutput('id_token', id_token)
- name: Retrieve regression test matrix
id: set-matrix
run: |
response=$(curl -H "Authorization: ${{ steps.idtoken.outputs.id_token }}" https://khoury-classroom-dev.ngrok.pizza/api/autograder/regression-tests)
echo "matrix=$response" >> $GITHUB_OUTPUT
shell: bash
smoke-test:
name: Submit and Grade Assignment
needs: build-matrix
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJson(needs.build-matrix.outputs.matrix)}}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
path: submission
- name: Debug matrix
run: |
echo "matrix: ${{ matrix }}"
echo "config: ${{ matrix.config }}"
echo "id: ${{ matrix.config.id }}"
shell: bash
- name: Collect Submission and Run Grader
uses: neu-se/autograder-action@main
with:
grading_server: 'https://khoury-classroom-dev.ngrok.pizza'
handout_repo: 'pawtograder/example-assignment-java-handout'
regression_test_job: '${{ matrix.config.id }}'
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy