Skip to content

Add Python version matrix testing to CI#8

Merged
ilaflott merged 2 commits intomainfrom
copilot/test-across-python-version-matrix
Apr 14, 2026
Merged

Add Python version matrix testing to CI#8
ilaflott merged 2 commits intomainfrom
copilot/test-across-python-version-matrix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

CI was testing against a single Python version. This adds matrix testing across Python 3.11, 3.12, and 3.13 to catch version-specific regressions.

Changes

  • .github/workflows/create_test_conda_env.yml
    • Added strategy.matrix over python-version: ["3.11", "3.12", "3.13"] with fail-fast: false so all versions run to completion
    • Replaced environment-file: environment.yaml with python-version: ${{ matrix.python-version }} in the setup-miniconda step — the env file hardcodes a Python version and can't be parameterized
    • Added channels: conda-forge,noaa-gfdl directly to the setup step (consistent with build_conda.yml)
    • Added explicit "Install dependencies" step mirroring environment.yaml packages, decoupled from the env file so each matrix job resolves deps against the correct Python version
strategy:
  matrix:
    python-version: ["3.11", "3.12", "3.13"]
  fail-fast: false

Issue ticket number and link (if applicable)

Checklist before requesting a review

  • I ran my code
  • I tried to make my code readable
  • I tried to comment my code
  • I wrote a new test, if applicable
  • I wrote new instructions/documentation, if applicable
  • I ran pytest and inspected it's output
  • I ran pylint and attempted to implement some of it's feedback
  • No print statements; all user-facing info uses logging module

Note: If you are a code maintainer updating the tag or releasing a new fremorizer version, please use the release_procedure.md template. To quickly use this template, open a new pull request, choose your branch, and add ?template=release_procedure.md to the end of the url.

Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add testing across python version via matrix Add Python version matrix testing to CI Apr 14, 2026
Copilot AI requested a review from ilaflott April 14, 2026 01:21
@ilaflott ilaflott marked this pull request as ready for review April 14, 2026 01:23
@ilaflott ilaflott merged commit 199fbde into main Apr 14, 2026
1 of 5 checks passed
@ilaflott ilaflott deleted the copilot/test-across-python-version-matrix branch April 14, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testing across python version via matrix

2 participants