bgong6 tests #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate tests against reference | |
on: | |
pull_request_target: | |
types: [opened, review_requested, ready_for_review, edited, synchronize] | |
issue_comment: | |
types: [created, deleted] | |
jobs: | |
tests: | |
name: Check that tests are valid | |
if: github.repository_owner == 'browncs1260' | |
runs-on: ubuntu-latest | |
container: | |
image: jiahuac/cs1260:main | |
options: --user root | |
steps: | |
- name: Check out assignments repo | |
uses: actions/checkout@v4 | |
with: | |
repository: 'BrownCS1260-fall-2023/finalhw-stencil' | |
submodules: recursive | |
path: 'hw' | |
- name: Check out benchmark tests repo | |
uses: actions/checkout@v4 | |
with: | |
path: 'hw/benchmarks' | |
ref: ${{ github.event.pull_request.merge_commit_sha }} | |
- name: Run benchmarks | |
working-directory: 'hw/benchmarks' | |
run: chmod -R 1777 ../ && su - cs1260_user -c "cd $(pwd) && eval \$(opam env) && python3 bench.py --repeat 1" | |