-
Notifications
You must be signed in to change notification settings - Fork 43
36 lines (29 loc) · 921 Bytes
/
build.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
name: Building
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
# Install the latest miniconda. The "test" environment is activated
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0} # to activate conda
run: |
python -m pip install --upgrade pip
pip install pytest
pip install . # Install this library
conda install -c pytorch faiss-cpu=1.7.4 mkl=2021 blas=1.0=mkl
- name: Test with pytest
shell: bash -l {0} # to activate conda
run: |
make test