Skip to content

Commit

Permalink
Use a different ci environment on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Dec 6, 2023
1 parent 2316e3b commit 513210d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/conda-forge-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,20 @@ jobs:
shell: bash -l {0}
id: week
run: echo "week=$(date +%Y-%U)" >> "${GITHUB_OUTPUT}"

- uses: mamba-org/setup-micromamba@v1
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
with:
environment-file: ci_env.yml
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }}

- uses: mamba-org/setup-micromamba@v1
if: contains(matrix.os, 'windows')
with:
environment-file: ci_env_win.yml
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }}


- name: Print packages and environment
shell: bash -l {0}
run: |
Expand All @@ -46,8 +55,6 @@ jobs:
shell: bash -l {0}
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
run: |
# Add additional dependencies not available on Windows
micromamba install jax pytorch
pytest
- name: Test with pytest [Windows]
Expand Down
2 changes: 2 additions & 0 deletions ci_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ dependencies:
- pytest-repeat
- icub-models
- idyntree
- jax
- pytorch
18 changes: 18 additions & 0 deletions ci_env_win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: adamdev
channels:
- conda-forge
dependencies:
- python >=3.7
- numpy
- scipy
- casadi
- prettytable
- urdfdom-py
- pip
- wheel
- setuptools
- setuptools_scm
- pytest
- pytest-repeat
- icub-models
- idyntree

0 comments on commit 513210d

Please sign in to comment.