-
Notifications
You must be signed in to change notification settings - Fork 22
97 lines (85 loc) · 2.51 KB
/
pytest.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: pytest-environment-setup
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# ref: https://github.com/marketplace/actions/setup-miniconda
Ubuntu:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: l2d-vtb
environment-file: environment.yml
python-version: "3.8"
- run: |
conda env list
conda activate l2d-vtb
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
conda install -c conda-forge dlib
conda install scipy
conda install pytorch==1.10.2 torchvision==0.11.3 torchaudio==0.10.2 cudatoolkit=10.2 -c pytorch
- name: Run tests
run: |
pytest tests/test_linux.py
MacOS:
runs-on: macOS-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: l2d-vtb
environment-file: environment.yml
python-version: "3.8"
- run: |
conda env list
conda activate l2d-vtb
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
conda install -c conda-forge dlib
conda install scipy
conda install pytorch torchvision torchaudio -c pytorch-nightly
- name: Run tests
run: |
pytest tests/test_mac.py
Windows:
runs-on: windows-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: l2d-vtb
environment-file: environment.yml
python-version: "3.8"
- run: |
conda env list
conda activate l2d-vtb
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
conda install -c conda-forge dlib
conda install scipy
pip install torch==1.10.2+cu102 torchvision==0.11.3+cu102 torchaudio==0.10.2+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html
- name: Run tests
run: |
pytest tests/test_win.py