Skip to content

Commit

Permalink
use setup_micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Aug 29, 2023
1 parent 4e272f5 commit 23a46b6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ jobs:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Setup Conda Environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1.4.3
with:
environment-file: ./devtools/conda.recipe/build_env.yml
environment-name: build_env
init-shell: >-
bash
powershell
cache-downloads: true

- name: activate build env
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
extras: 'test vis media'
setup_requires: 'include'

- uses: mamba-org/provision-with-micromamba@main
- name: Setup Conda Environment
uses: mamba-org/[email protected]
with:
environment-file: ./environment.yml
environment-name: weldx
cache-env: true
extra-specs: |
init-shell: >-
bash
powershell
cache-environment: true
create-args: >-
python=${{ matrix.py }}
wheel
pip
Expand Down Expand Up @@ -142,12 +146,16 @@ jobs:
extras: 'test vis media'
setup_requires: 'include'

- uses: mamba-org/provision-with-micromamba@main
- name: Setup Conda Environment
uses: mamba-org/[email protected]
with:
environment-file: ./environment.yml
environment-name: weldx
cache-env: true
extra-specs: |
init-shell: >-
bash
powershell
cache-environment: true
create-args: >-
python=${{ matrix.py }}
wheel
pip
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pytest_asdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ jobs:
extras: 'test'
setup_requires: 'include'

- uses: mamba-org/provision-with-micromamba@main
- name: Setup Conda Environment
uses: mamba-org/[email protected]
with:
environment-file: ./environment.yml
environment-name: weldx
cache-env: true
extra-specs: |
init-shell: >-
bash
powershell
cache-environment: true
create-args: >-
python=3.10
pip
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ jobs:
./.mypy_cache
key: ${{ runner.os }}-${{ hashFiles('./environment.yml') }}

- uses: mamba-org/provision-with-micromamba@main
- name: Setup Conda Environment
uses: mamba-org/[email protected]
with:
environment-file: ./environment.yml
environment-name: weldx
cache-env: true
extra-specs: |
cache-environment: true
create-args: >-
python=3.9
mypy
- name: activate env
Expand Down

0 comments on commit 23a46b6

Please sign in to comment.