Merge pull request #82 from ubermag/fix_relax_driver #177
Workflow file for this run
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: workflow | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * 1' # run every Monday | |
workflow_dispatch: | |
env: | |
PYTEST_ADDOPTS: "--color=yes" | |
jobs: | |
# workflow-windows: | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# os: [windowsGPU] | |
# defaults: | |
# run: | |
# shell: powershell {0} | |
# steps: | |
# - name: Initialisation | |
# uses: actions/checkout@v2 | |
# - name: Create conda env | |
# run: conda env create -f ".github/environment.yml" | |
# - name: Install packages | |
# run: | | |
# # eval "$(conda shell.bash hook)" | |
# conda activate conda-environment | |
# conda env list | |
# python --version | |
# python -m pip install .[dev] | |
# - name: Unit tests with coverage | |
# run: | | |
# # eval "$(conda shell.bash hook)" | |
# conda activate conda-environment | |
# invoke test.coverage | |
# - name: Doc tests | |
# run: | | |
# # eval "$(conda shell.bash hook)" | |
# conda activate conda-environment | |
# invoke test.docs | |
# - name: Notebook tests | |
# run: | | |
# # eval "$(conda shell.bash hook)" | |
# conda activate conda-environment | |
# invoke test.ipynb | |
# - name: Remove conda env | |
# run: conda env remove -n conda-environment | |
# if: always() | |
# - name: Upload coverage to Codecov.io | |
# uses: codecov/codecov-action@v1 | |
workflow-linux: | |
runs-on: GPU | |
defaults: | |
run: | |
shell: bash -i {0} | |
steps: | |
- name: Initialisation | |
uses: actions/checkout@v2 | |
- name: Debug | |
run: | | |
pwd | |
echo $PATH | |
which conda | |
- name: Create conda env | |
run: conda env create -f ".github/environment.yml" | |
- name: Install packages | |
run: | | |
eval "$(conda shell.bash hook)" | |
conda activate conda-environment | |
python --version | |
python -m pip install .[dev] | |
- name: Unit tests with coverage | |
run: | | |
eval "$(conda shell.bash hook)" | |
conda activate conda-environment | |
invoke test.coverage | |
- name: Doc tests | |
run: | | |
eval "$(conda shell.bash hook)" | |
conda activate conda-environment | |
invoke test.docs | |
- name: Notebook tests | |
run: | | |
eval "$(conda shell.bash hook)" | |
conda activate conda-environment | |
invoke test.ipynb | |
- name: Remove conda env | |
run: conda env remove -n conda-environment | |
if: always() | |
- name: Upload coverage to Codecov.io | |
uses: codecov/codecov-action@v1 |