-
Notifications
You must be signed in to change notification settings - Fork 55
30 lines (29 loc) · 1023 Bytes
/
ci.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
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"