Skip to content

Commit 2adcfba

Browse files
committed
Update test steps
1 parent 18c318d commit 2adcfba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ jobs:
165165
channels: conda-forge
166166
python-version: ${{ matrix.python }}
167167
activate-environment: ${{ env.TEST_ENV_NAME }}
168+
pkgs-dirs: ${{ env.onda-pkgs }}
168169

169170
- name: Remove defaults channel
170171
run: conda config --remove channels defaults
@@ -196,8 +197,9 @@ jobs:
196197
- name: Cache conda packages
197198
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
198199
env:
199-
CACHE_NUMBER: 1 # Increase to reset cache
200+
CACHE_NUMBER: 2 # Increase to reset cache
200201
with:
202+
enableCrossOsArchive: 'true' # Use faster GNU tar
201203
path: ${{ env.conda-pkgs }}
202204
key:
203205
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-${{hashFiles('lockfile') }}
@@ -258,7 +260,7 @@ jobs:
258260
continue-on-error: true
259261

260262
env:
261-
conda-pkgs: 'C:\Users\runneradmin\conda_pkgs_dir\'
263+
conda-pkgs: 'D:\conda_pkgs_dir\'
262264
channel-path: '${{ github.workspace }}\channel\'
263265
pkg-path-in-channel: '${{ github.workspace }}\channel\win-64\'
264266
extracted-pkg-path: '${{ github.workspace }}\pkg'
@@ -294,6 +296,7 @@ jobs:
294296
channels: conda-forge
295297
python-version: ${{ matrix.python }}
296298
activate-environment: ${{ env.TEST_ENV_NAME }}
299+
pkgs-dirs: ${{ env.onda-pkgs }}
297300

298301
- name: Remove defaults channel
299302
run: conda config --remove channels defaults
@@ -340,8 +343,9 @@ jobs:
340343
- name: Cache conda packages
341344
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
342345
env:
343-
CACHE_NUMBER: 1 # Increase to reset cache
346+
CACHE_NUMBER: 2 # Increase to reset cache
344347
with:
348+
enableCrossOsArchive: 'true' # Use faster GNU tar
345349
path: ${{ env.conda-pkgs }}
346350
key:
347351
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-${{hashFiles('lockfile') }}

0 commit comments

Comments
 (0)