forked from diku-dk/RAINBOW
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.34 KB
/
python-package-conda.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
# Inspired by:
# https://autobencoder.com/2020-08-24-conda-actions/
name: Testing your commit on libRAINBOW
on:
push:
branches: [ test/auto-unit-test ]
pull_request:
branches: [ main ]
jobs:
miniconda:
name: os ${{ matrix.os }} python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: Run Test and Coverage
shell: bash -l {0}
run: |
conda install numpy
conda install scipy
conda install -c conda-forge matplotlib
conda install -c conda-forge igl
conda install coverage
conda install pyparsing
conda install -c anaconda ipython_genutils
conda install -c conda-forge meshplot
pip install usd-core
coverage run -m unittest python/unit_tests/test_*.py
coverage report
- name: Format the code
shell: bash -l {0}
run: |
conda install --name test black -y
black python/rainbow