|
73 | 73 | conda list
|
74 | 74 | python -VV
|
75 | 75 | printenv | sort
|
76 |
| -
|
77 |
| - example-10-mambaforge: |
78 |
| - # NOTE: Mambaforge is now equivalent to Miniforge. |
79 |
| - # We are only testing this to make sure there's a smooth transition. |
80 |
| - # It should be removed once the product is definitely sunset. |
81 |
| - # prevent cronjobs from running on forks |
82 |
| - if: |
83 |
| - (github.event_name == 'schedule' && github.repository == |
84 |
| - 'conda-incubator/setup-miniconda') || (github.event_name != 'schedule') |
85 |
| - name: Ex10 (${{ matrix.os }}, Mambaforge) |
86 |
| - runs-on: ${{ matrix.os }}-latest |
87 |
| - defaults: |
88 |
| - run: |
89 |
| - shell: bash -el {0} |
90 |
| - strategy: |
91 |
| - fail-fast: false |
92 |
| - matrix: |
93 |
| - os: ["ubuntu", "macos", "windows"] |
94 |
| - include: |
95 |
| - # should use mamba 0.7.4 to upgrade to mamba 0.7.6 |
96 |
| - - os: ubuntu |
97 |
| - environment-file: etc/example-environment-no-name.yml |
98 |
| - miniforge-variant: Mambaforge |
99 |
| - miniforge-version: 4.9.2-2 |
100 |
| - mamba-version: 0.7.6 |
101 |
| - python-version: 3.6 |
102 |
| - # should use mamba >= 0.20 |
103 |
| - - os: ubuntu |
104 |
| - environment-file: etc/example-environment-no-name.yml |
105 |
| - miniforge-variant: Mambaforge |
106 |
| - mamba-version: ">=0.20" |
107 |
| - # should use mamabforge `latest` |
108 |
| - - os: windows |
109 |
| - environment-file: etc/example-explicit.Windows.conda.lock |
110 |
| - condarc-file: etc/example-condarc.yml |
111 |
| - miniforge-variant: Mambaforge |
112 |
| - - os: macos |
113 |
| - miniforge-variant: Mambaforge |
114 |
| - miniforge-version: "23.3.1-1" |
115 |
| - timeout-minutes: 30 |
116 |
| - steps: |
117 |
| - - uses: actions/checkout@v4 |
118 |
| - - uses: ./ |
119 |
| - id: setup-miniconda |
120 |
| - with: |
121 |
| - condarc-file: ${{ matrix.condarc-file }} |
122 |
| - environment-file: ${{ matrix.environment-file }} |
123 |
| - miniforge-variant: ${{ matrix.miniforge-variant }} |
124 |
| - miniforge-version: ${{ matrix.miniforge-version }} |
125 |
| - mamba-version: ${{ matrix.mamba-version }} |
126 |
| - use-mamba: true |
127 |
| - python-version: ${{ matrix.python-version }} |
128 |
| - clean-patched-environment-file: false |
129 |
| - |
130 |
| - - run: | |
131 |
| - mamba info |
132 |
| - mamba list |
133 |
| - python -VV |
134 |
| - printenv | sort |
135 |
| - - name: verify unpatched environment.yml is reported and not cleaned |
136 |
| - if: contains(matrix.environment-file, '.yml') && !matrix.python-version |
137 |
| - run: | |
138 |
| - set -eux |
139 |
| - ls '${{ steps.setup-miniconda.outputs.environment-file }}' |
140 |
| - ls '${{ matrix.environment-file }}' |
141 |
| - diff -s '${{ steps.setup-miniconda.outputs.environment-file }}' '${{ matrix.environment-file }}' | grep 'are identical' |
142 |
| - - name: verify patched output is reported, correct, and not cleaned |
143 |
| - if: contains(matrix.environment-file, '.yml') && matrix.python-version |
144 |
| - run: | |
145 |
| - set -eux |
146 |
| - if [ "$(diff '${{ steps.setup-miniconda.outputs.environment-file }}' '${{ matrix.environment-file }}' | grep -c 'python=${{ matrix.python-version }}')" -ge 1 ] ; then echo ok ; else exit 1 ; fi |
147 |
| - python --version | grep "Python ${{ matrix.python-version }}" |
148 |
| - awk '/- conda-forge/,/- defaults/' '${{ steps.setup-miniconda.outputs.environment-file }}' |
0 commit comments