Skip to content

Commit

Permalink
Test conda install in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanBryan51 committed Mar 15, 2024
1 parent 8a1e1a8 commit ec9199d
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,33 @@ 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:
# Fetch all history for all tags and branches (tag information is
# required when building the conda package)
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.9'
- name: Test conda build
- name: Build and install conda package
run: |
conda install conda-build
conda build -c conda-forge -c accessnri -c coecms .
conda build -c conda-forge -c accessnri -c coecms .
conda install --no-channel-priority -c $CONDA_PREFIX/conda-bld -c conda-forge -c accessnri -c coecms benchcab
conda uninstall conda-build
- name: Pytest
run: |
conda install pytest-cov
pytest

0 comments on commit ec9199d

Please sign in to comment.