Skip to content

Commit

Permalink
Use official conda-action
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoRoth committed Aug 20, 2024
1 parent 75ae049 commit 64c2dbe
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 33 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Conda
run: ./ci/setup-conda.sh
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channel-priority: strict
channels: conda-forge
- name: Install global deps
run: |
conda install conda-build conda-verify anaconda-client
conda info -a
- name: Build Pytest-Mpl
run: ./ci/build-package.sh pytest-mpl
env:
Expand Down Expand Up @@ -48,7 +56,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Conda
run: ./ci/setup-conda.sh
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channel-priority: strict
channels: conda-forge
- name: Install global deps
run: |
conda install conda-build conda-verify anaconda-client
conda info -a
- name: Make Env
run: ./ci/make-env.sh
env:
Expand Down
8 changes: 0 additions & 8 deletions ci/activate-conda.sh

This file was deleted.

5 changes: 1 addition & 4 deletions ci/build-package.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash
set -e

cd "$(dirname "$0")"
source ./activate-conda.sh

cd ..
cd "$(dirname "$0")"/..

PKG="$1"
MF="./build/$1/meta.yaml"
Expand Down
5 changes: 1 addition & 4 deletions ci/make-env.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash
set -e

cd "$(dirname "$0")"
source ./activate-conda.sh

cd ..
cd "$(dirname "$0")"/..

export MPLBACKEND=agg
export OGGM_USE_MP_SPAWN=1
Expand Down
15 changes: 0 additions & 15 deletions ci/setup-conda.sh

This file was deleted.

0 comments on commit 64c2dbe

Please sign in to comment.