Skip to content

Commit

Permalink
ReSetup miniconda of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy committed Jan 10, 2025
1 parent 6fccf67 commit 38e2e49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:

needs: build

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

defaults:
run:
Expand All @@ -109,6 +109,7 @@ jobs:
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]

continue-on-error: true

Expand Down Expand Up @@ -203,7 +204,7 @@ jobs:

needs: build

runs-on: windows-2019
runs-on: ${{ matrix.os }}

defaults:
run:
Expand All @@ -212,6 +213,7 @@ jobs:
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [windows-2019]

continue-on-error: true

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/cron-run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ jobs:
echo "Latest tag is ${{ steps.find_latest_tag.outputs.tag }}"
- name: Setup miniconda
id: setup_miniconda
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
with:
miniforge-version: latest
use-mamba: 'true'
channels: conda-forge
conda-remove-defaults: 'true'
python-version: ${{ matrix.python }}
activate-environment: ${{ env.TEST_ENV_NAME }}

- name: ReSetup miniconda
if: steps.setup_miniconda.outcome == 'failure'
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
with:
miniforge-version: latest
Expand Down

0 comments on commit 38e2e49

Please sign in to comment.