-
Notifications
You must be signed in to change notification settings - Fork 45
56 lines (47 loc) · 1.24 KB
/
build_and_test.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
50
51
52
53
54
55
name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
BUILD_TYPE: Release
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu 20.04 GCC", artifact: "Linux.7z",
os: ubuntu-20.04,
cc: "gcc", cxx: "g++"
}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
working-directory: ${{github.workspace}}
shell: bash
run: |
python3 --version
sudo python3 -m pip install pyarrow
if [ "$RUNNER_OS" == "Linux" ]; then
sudo pip3 install torch --extra-index-url https://download.pytorch.org/whl/cpu
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: Install Marius
working-directory: ${{github.workspace}}
shell: bash
run: |
sudo pip3 install .[tests] --verbose
marius_env_info
- name: Run Tests
working-directory: ${{github.workspace}}
shell: bash
run: OMP_NUM_THREADS=1 MARIUS_TEST_HOME=test/ python3 -m pytest test/python --verbose