Skip to content

Commit

Permalink
Switch to setup-micromamba (#476)
Browse files Browse the repository at this point in the history
* Switch to setup-micromamba

* Update .github/workflows/ci.yaml

* fix?

* last one!
  • Loading branch information
dcherian authored Oct 24, 2023
1 parent 03583e4 commit 256f11c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
run: |
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Set up conda environment
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment.yml
environment-name: cf_xarray_test
cache-env: true
extra-specs: |
python="${{ matrix.python-version }}"
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
- name: Install cf_xarray
run: |
python -m pip install --no-deps -e .
Expand Down Expand Up @@ -70,11 +70,11 @@ jobs:
# need to fetch all tags to get a correct version
fetch-depth: 0 # fetch all branches and tags
- name: Set up conda environment
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-no-optional-deps.yml
environment-name: cf_xarray_test
cache-env: true
cache-environment: true
- name: Install cf_xarray
run: |
python -m pip install --no-deps -e .
Expand All @@ -97,13 +97,13 @@ jobs:
with:
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: Set up conda environment
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment.yml
environment-name: cf_xarray_test
cache-env: true
extra-specs: |
python="${{ matrix.python-version }}"
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
- name: Install cf_xarray
run: |
python -m pip install --no-deps -e .
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
upstream-dev:
name: upstream-dev
runs-on: ubuntu-latest
if: ${{ contains( github.event.pull_request.labels.*.name, 'test-upstream') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
if: ${{ (contains( github.event.pull_request.labels.*.name, 'test-upstream') && github.event_name == 'pull_request') || github.event_name == 'workflow_dispatch' }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -38,13 +38,13 @@ jobs:
run: |
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Set up conda environment
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/upstream-dev-env.yml
environment-name: cf_xarray_test
cache-env: False
extra-specs: |
python="${{ matrix.python-version }}"
create-args: >-
python=${{ matrix.python-version }}
- name: Install cf_xarray
run: |
python -m pip install --no-deps -e .
Expand Down

0 comments on commit 256f11c

Please sign in to comment.