Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
book/.github/workflows/test_book.yml
View runs Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (39 sloc)
1.11 KB
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
name: Test Book | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
Test: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
auto-activate-base: true | |
- name: Set up GDS Env | |
shell: bash -l {0} | |
run: | | |
conda update -y -n base -c defaults conda | |
conda --version | |
conda env create -f https://raw.githubusercontent.com/darribas/gds_env/master/gds_py/gds_py.yml | |
conda activate gds | |
pip install -r https://raw.githubusercontent.com/darribas/gds_env/master/gds_py/gds_py_pip.txt | |
- name: Check and Log Environment | |
shell: bash -l {0} | |
run: | | |
conda activate gds | |
conda info | |
# Print conda list | |
conda list | |
- name: Run Tests | |
shell: bash -l {0} | |
continue-on-error: false | |
run: | | |
conda activate gds | |
make test |