Skip to content

Commit

Permalink
Merge pull request #29 from jacquelinegarrahan/gh-actions-miniconda
Browse files Browse the repository at this point in the history
Gh actions miniconda
  • Loading branch information
jacquelinegarrahan authored Apr 27, 2021
2 parents 8643274 + b4cf807 commit 80e81ba
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,14 @@ jobs:
name: Python ${{ matrix.python-version }}, ${{ matrix.os }} build
steps:
- uses: actions/checkout@v2
- name: Set up conda
uses: s-weigand/setup-conda@v1
- uses: conda-incubator/setup-miniconda@v2
with:
update-conda: true
auto-activate-base: true
activate-environment: true
conda-build-version: 3.18.11
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Configure conda
run: |
conda info
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda config --set channel_priority flexible
conda install conda-build anaconda-client
conda update -q conda conda-build
channels: anaconda,conda-forge
channel-priority: flexible
- name: Build package
run: |
conda build -q conda-recipe --python=$TRAVIS_PYTHON_VERSION --output-folder bld-dir
- name: Test with pytest
run: |
conda config --add channels "file://`pwd`/bld-dir"
conda install --file dev-requirements.txt
conda install lume-model
pytest
conda build -q conda-recipe --python=${{ matrix.python-version }} --output-folder bld-dir

0 comments on commit 80e81ba

Please sign in to comment.