-
Notifications
You must be signed in to change notification settings - Fork 37
49 lines (39 loc) · 1.1 KB
/
hw4.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: hw4
on:
push:
branches:
- '**hw4**'
pull_request:
branches:
- hw4
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
fail-fast: false
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: dependency (ubuntu)
run: |
sudo apt-get -q update
sudo apt-get -qy install \
curl build-essential make cmake libc6-dev \
gcc g++ gfortran intel-mkl-full \
python3 python3-pip python3-pytest \
python3-numpy python3-scipy python3-pandas python3-matplotlib \
jupyter
cd /usr/bin ; sudo ln -sf py.test-3 py.test
- name: dependency (custom)
run: |
export INSTALL_PREFIX=/usr
sudo contrib/install.sh everything
- name: grade
run: |
username=$( [ -z "${{ github.event.pull_request.user.login }}" ] && echo $GITHUB_REPOSITORY | cut -d '/' -f 1 || echo ${{ github.event.pull_request.user.login }})
echo "cd hw4/$username"
cd hw4/$username
../validate.py