-
Notifications
You must be signed in to change notification settings - Fork 201
47 lines (37 loc) · 1.29 KB
/
workflows.yaml
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
name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *" # @daily
jobs:
python-unittest-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Set up Python
uses: s-weigand/setup-conda@v1
with:
python-version: 3.8
- name: Install PyTorch
run: |
conda install pytorch torchvision -c pytorch
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
python collect_env.py
- name: Install Dependencies
run: |
pip install git+https://github.com/facebookresearch/detectron2.git
pip install git+https://github.com/facebookresearch/mobile-vision
pip install scikit-learn
pip install pytest pytest-xdist nbval
pip install -e .
- name: Run pytest
run: |
python -m pytest -n 4 --durations=15 -sv tests/ --ignore=tests/skip_init/
- name: Run pytest (skip initializer)
run: |
D2GO_IMPORT_SKIP_INITIALIZATION=1 python -m pytest -n 4 --durations=15 -sv tests/skip_init/
# - name: Test Notebooks
# run: |
# find . -name *.ipynb | CI=true xargs pytest --nbval-lax --current-env