Skip to content

Update LazyLoader and LazyPredictor to be compatible with the new tes… #128

Update LazyLoader and LazyPredictor to be compatible with the new tes…

Update LazyLoader and LazyPredictor to be compatible with the new tes… #128

Workflow file for this run

name: Conda Build
on:
push:
branches:
- 'master'
pull_request:
branches: [master]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set pytorch-3dunet version
run: echo "RELEASE_VERSION=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
- name: Print pytorch-3dunet version
run: echo $RELEASE_VERSION
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
activate-environment: ""
channels: local,conda-forge,defaults
channel-priority: false
- shell: bash -l {0}
run: conda info --envs
- name: Build pytorch-3dunet
shell: bash -l {0}
run: |
conda install -q conda-build
conda build -c pytorch -c nvidia -c conda-forge conda-recipe
- name: Create pytorch3dunet env
run: |
conda create -n pytorch3dunet -c pytorch -c nvidia -c conda-forge pytorch-3dunet pytest
- name: Run pytest
shell: bash -l {0}
run: |
conda activate pytorch3dunet
pytest
conda deactivate
- name: Deploy on conda
if: ${{ startsWith( github.ref, 'refs/tags/') && success() }}
env:
ANACONDA_SECRET: ${{ secrets.ANACONDA_TOKEN }}
shell: bash -l {0}
run: |
conda install -q anaconda-client
anaconda -t $ANACONDA_SECRET upload $CONDA/conda-bld/**/pytorch-3dunet-*.tar.bz2