-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (43 loc) · 1.47 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "Linux"
Linux:
# The type of runner that the job will run on
name: Run tests on ${{ matrix.os }}, py ${{ matrix.py_version }}, torch ${{ matrix.torch_version }}
runs-on: ${{ matrix.os }}
env:
DISABLE_TEST_LARGE_SAMPLE: True
strategy:
matrix:
os: [ubuntu-20.04]
py_version: ['3.6', '3.7', '3.8']
torch_version: ['1.8', '1.10']
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Install Python3
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py_version }}
- name: Install packages
run: |
pip install numpy cmake tqdm pybind11>=2.8
pip install torch==${{ matrix.torch_version }}
sudo apt install -y libaio-dev
- name: Build & Install
run: python setup.py install
- name: test
run: |
cd tests
python -m unittest test_*.py