Skip to content

Commit e9e73dd

Browse files
Update build workflow (#698)
* Update build workflow - Replace mamba with miniforge and conda - Add Python 3.12 to testing matrix - Update `CANCEL_OTHERS` to `false` to test each Python version individually for potential Python-specific issues - Update `setup-miniconda` to v3
1 parent 643e72c commit e9e73dd

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/build_workflow.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
CANCEL_OTHERS: true
13+
CANCEL_OTHERS: false
1414
PATHS_IGNORE: '["**/README.rst", "**/AUTHORS.rst", "**/CODE_OF_CONDUCT.rst", "**/HISTORY.rst", "**/CONTRIBUTING.rst", "**/docs/**", "**/ISSUE_TEMPLATE/**", "**/pull_request_template.md", "**/.vscode/**"]'
1515

1616
jobs:
@@ -31,7 +31,7 @@ jobs:
3131
needs: skip-duplicate-actions
3232
if: needs.skip-duplicate-actions.outputs.should_skip != 'true'
3333
runs-on: ubuntu-latest
34-
timeout-minutes: 3
34+
timeout-minutes: 5
3535
steps:
3636
- name: Checkout Code Repository
3737
uses: actions/checkout@v3
@@ -55,18 +55,16 @@ jobs:
5555
shell: bash -l {0}
5656
strategy:
5757
matrix:
58-
python-version: ["3.9", "3.10", "3.11"]
58+
python-version: ["3.9", "3.10", "3.11", "3.12"]
5959
steps:
6060
- uses: actions/checkout@v3
6161

6262
- name: Set up Conda Environment
63-
uses: conda-incubator/setup-miniconda@v2
63+
uses: conda-incubator/setup-miniconda@v3
6464
with:
65-
miniforge-variant: Mambaforge
65+
miniforge-variant: Miniforge3
6666
miniforge-version: latest
6767
activate-environment: "xcdat_ci"
68-
use-mamba: true
69-
mamba-version: "*"
7068
channel-priority: strict
7169
auto-update-conda: true
7270
python-version: ${{ matrix.python-version }}
@@ -93,10 +91,10 @@ jobs:
9391
- if: steps.cache.outputs.cache-hit != 'true'
9492
name: Update environment
9593
run: |
96-
mamba env update -n xcdat_ci -f conda-env/ci.yml
94+
conda env update -n xcdat_ci -f conda-env/ci.yml
9795
# Make sure the Python version in the env matches the current matrix version.
9896
# Make sure numpy is not > 2.0.
99-
mamba install -c conda-forge python=${{ matrix.python-version }} "numpy>=1.23.0,<2.0"
97+
conda install -c conda-forge python=${{ matrix.python-version }} "numpy>=1.23.0,<2.0"
10098
10199
- name: Install xcdat
102100
# Source: https://github.com/conda/conda-build/issues/4251#issuecomment-1053460542

0 commit comments

Comments
 (0)