Use official conda-action #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conda | |
on: | |
push: [] | |
schedule: | |
- cron: '0 4 * * 1' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
packages: | |
name: Build Packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3 | |
auto-update-conda: true | |
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: | |
ANACONDA_AUTH_TOKEN: ${{ secrets.ANACONDA_AUTH_TOKEN }} | |
- name: Build oggm-deps | |
run: ./ci/build-package.sh oggm-deps | |
env: | |
ANACONDA_AUTH_TOKEN: ${{ secrets.ANACONDA_AUTH_TOKEN }} | |
- name: Build oggm | |
run: ./ci/build-package.sh oggm | |
env: | |
ANACONDA_AUTH_TOKEN: ${{ secrets.ANACONDA_AUTH_TOKEN }} | |
- name: Build oggmdev | |
run: ./ci/build-package.sh oggmdev | |
env: | |
ANACONDA_AUTH_TOKEN: ${{ secrets.ANACONDA_AUTH_TOKEN }} | |
envs: | |
name: Build Envs | |
needs: packages | |
strategy: | |
fail-fast: false | |
matrix: | |
pkg: [oggm, oggmdev] | |
python: ["3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ contains(matrix.os, 'windows') }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Conda | |
run: ./ci/setup-conda.sh | |
- name: Make Env | |
run: ./ci/make-env.sh | |
env: | |
DEPLOY_KEY: ${{ secrets.DEP_LIST_DEPLOY_KEY }} | |
PKG: ${{ matrix.pkg }} | |
PYVER: ${{ matrix.python }} |