Skip to content

Commit 513210d

Browse files
authored
Use a different ci environment on Windows
1 parent 2316e3b commit 513210d

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

Diff for: .github/workflows/conda-forge-tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,20 @@ jobs:
2525
shell: bash -l {0}
2626
id: week
2727
run: echo "week=$(date +%Y-%U)" >> "${GITHUB_OUTPUT}"
28+
2829
- uses: mamba-org/setup-micromamba@v1
30+
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
2931
with:
3032
environment-file: ci_env.yml
3133
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }}
34+
35+
- uses: mamba-org/setup-micromamba@v1
36+
if: contains(matrix.os, 'windows')
37+
with:
38+
environment-file: ci_env_win.yml
39+
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }}
3240

41+
3342
- name: Print packages and environment
3443
shell: bash -l {0}
3544
run: |
@@ -46,8 +55,6 @@ jobs:
4655
shell: bash -l {0}
4756
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
4857
run: |
49-
# Add additional dependencies not available on Windows
50-
micromamba install jax pytorch
5158
pytest
5259
5360
- name: Test with pytest [Windows]

Diff for: ci_env.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ dependencies:
1616
- pytest-repeat
1717
- icub-models
1818
- idyntree
19+
- jax
20+
- pytorch

Diff for: ci_env_win.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: adamdev
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python >=3.7
6+
- numpy
7+
- scipy
8+
- casadi
9+
- prettytable
10+
- urdfdom-py
11+
- pip
12+
- wheel
13+
- setuptools
14+
- setuptools_scm
15+
- pytest
16+
- pytest-repeat
17+
- icub-models
18+
- idyntree

0 commit comments

Comments
 (0)