Skip to content

Commit

Permalink
iris test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed Jul 11, 2024
1 parent 0de49b6 commit d0426d6
Showing 1 changed file with 6 additions and 45 deletions.
51 changes: 6 additions & 45 deletions .github/workflows/dev_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,12 @@ name: HTTomo dev build
on:
pull_request:
branches:
- main
- dev

jobs:
build-conda-upload:
runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}

steps:
- name: Checkout repository code
uses: actions/checkout@v3
with:
ref: "dev"
fetch-depth: 0


# setup Python 3.10
- name: Setup Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies with Conda
run: |
$CONDA/bin/conda install -c conda-forge conda-build
$CONDA/bin/conda install -c conda-forge anaconda-client
$CONDA/bin/conda update conda
$CONDA/bin/conda update conda-build
$CONDA/bin/conda list
- name: Decrypt a secret
run: ./.scripts/decrypt_secret.sh
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}

- name: Build and upload the package (dev) to httomo conda cloud
env:
LABEL: dev
run: |
chmod +x ./.scripts/conda_upload.sh
./.scripts/conda_upload.sh

install-run-tests:
runs-on: ubuntu-latest
needs: build-conda-upload

defaults:
run:
shell: bash -l {0}
Expand All @@ -73,12 +31,15 @@ jobs:
post-cleanup: 'all'
init-shell: bash

- name: Install httomo
- name: Install httomo from conda-cloud
run: |
conda install "httomo/linux-64::httomo * py310_openmpi_regular*"
micromamba activate httomo
micromamba install "httomo/linux-64::httomo * py310_openmpi_regular*" -c conda-forge -c astra-toolbox -c rapidsai
micromamba list
- name: Run tests
run: |
pytest tests/

0 comments on commit d0426d6

Please sign in to comment.