From 4f581d503316a86090355bd8aa9fa2e2f31726ab Mon Sep 17 00:00:00 2001 From: Sean Bryan Date: Tue, 12 Mar 2024 12:28:19 +1100 Subject: [PATCH] Test conda install in CI --- .github/workflows/ci.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0312026..0b1a525 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,11 +29,17 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml - - build_conda_package: + + test_conda_package_install: runs-on: ubuntu-latest + # This is required to activate conda environment in GitHub Actions: + # See https://stackoverflow.com/questions/72703363/how-to-activate-conda-environment-in-github-actions + defaults: + run: + shell: bash -l {0} + steps: - uses: actions/checkout@v3 with: @@ -41,7 +47,8 @@ jobs: - uses: conda-incubator/setup-miniconda@v2 with: python-version: '3.9' - - name: Test conda build + - name: Test conda package build run: | conda install conda-build - conda build -c conda-forge -c accessnri -c coecms . \ No newline at end of file + conda build -c conda-forge -c accessnri -c coecms . + conda search --use-local benchcab