package setup #1
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
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, develop ] | |
workflow_dispatch: | |
name: Default installation and tests | |
jobs: | |
stable_install: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Conda info | |
shell: bash -l {0} | |
run: conda info | |
- name: Test pip installation with all stable dependencies | |
shell: bash -l {0} | |
run: | | |
. misc/stable_pip_install.sh | |
- name: Unittests | |
shell: bash -l {0} | |
run: | | |
cd tests | |
. run_tests.sh | |
loose_install: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Conda info | |
shell: bash -l {0} | |
run: conda info | |
- name: Test pip installation with all loose dependencies | |
shell: bash -l {0} | |
run: | | |
. misc/loose_pip_install.sh | |
- name: Unittests | |
shell: bash -l {0} | |
run: | | |
cd tests | |
. run_tests.sh |