-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 960 Bytes
/
test.yml
File metadata and controls
34 lines (31 loc) · 960 Bytes
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
name: Run tests
on: push
jobs:
test:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: test
python-version: 3.8
channels: conda-forge
- name: Build
run: |
conda install setuptools>=42.0.0 wheel scikit-build
conda install --file requirements.txt
conda install pytest
export PYTHONPATH=.:..
echo 'fastai 1.*' >> $CONDA/conda-meta/pinned
conda install pytorch torchvision -c pytorch
conda install -c fastai -c pytorch fastai
- name: Run the API tests
run: |
python -m pytest -vs