-
Notifications
You must be signed in to change notification settings - Fork 26
51 lines (43 loc) · 1.43 KB
/
preproc_python_tests.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
48
49
50
51
name: Python Preprocessing Tests
# Controls when the action 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:
jobs:
build:
runs-on: windows-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7.5
uses: actions/setup-python@v2
with:
python-version: 3.7.5
# - name: Add conda to system path
# run: |
# # $CONDA is an environment variable pointing to the root of the miniconda directory
# echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
pip install -r Python/preprocessing/requirements.txt
- name: Fix skylibs
run: |
pip uninstall -y skylibs
git clone https://github.com/reubenlindroos/skylibs.git
cd skylibs
python setup.py install
- name: Download test data
run: |
curl https://github.com/cr333/OmniPhotos/releases/download/v1.0/OmniPhotos-test-data.zip -o testDatasets.zip -L
tar -xf testDatasets.zip -C ${{github.workspace}}
- name: Run tests
run: |
python Python/preprocessing/test/main.py
env:
OP_TEST_ROOT_DIR: ${{github.workspace}}/testDatasets/circular/Hilltop/