forked from diku-dk/RAINBOW
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Inspired by: | ||
# https://autobencoder.com/2020-08-24-conda-actions/ | ||
name: Testing your commit on libRAINBOW | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
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 | ||
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 | ||