-
Notifications
You must be signed in to change notification settings - Fork 55
32 lines (31 loc) · 972 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
31
32
name: Validate tests against reference
on:
push:
branches:
- 'main'
pull_request:
types: [opened, review_requested, ready_for_review, edited]
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'
- name: Run benchmarks
working-directory: 'hw/benchmarks'
run: chmod -R 1777 ../ && su - cs1260_user -c "cd $(pwd) && eval \$(opam env) && python3 bench.py"