Skip to content

GEOPY-2769: optional environment parameter for pixi envs#163

Open
RomFloreani wants to merge 23 commits intomainfrom
GEOPY-2769
Open

GEOPY-2769: optional environment parameter for pixi envs#163
RomFloreani wants to merge 23 commits intomainfrom
GEOPY-2769

Conversation

@RomFloreani
Copy link
Copy Markdown
Contributor

@RomFloreani RomFloreani commented Apr 17, 2026

GEOPY-2769: add an environment optional parameter for pixi envs

see it in action, fixing GEOPY-QA worklfows at https://github.com/MiraGeoscience/geopy-qa/pull/21

Copilot AI review requested due to automatic review settings April 17, 2026 15:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an optional Pixi environment override to the reusable Python workflows to unblock downstream testing (GEOPY-QA) by allowing callers to select a specific Pixi environment name instead of always deriving it from the Python version.

Changes:

  • Added a new pixi-environment workflow input to the reusable static analysis and pytest workflows.
  • Updated Pixi setup usage to pass the optional environment name through to the Pixi setup action (and bumped the referenced action version).
  • Extended the composite Pixi setup action to prefer an explicit environment name when provided.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/reusable-python-static_analysis.yml Adds pixi-environment input and forwards it into Pixi environment setup.
.github/workflows/reusable-python-pytest.yml Adds pixi-environment input and forwards it into Pixi environment setup for matrix runs.
.github/actions/reusable-python-setup_pixi/action.yml Adds environment input and updates env-name selection logic to prefer it over derived name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/reusable-python-setup_pixi/action.yml
Comment thread .github/actions/reusable-python-setup_pixi/action.yml Outdated
@sebhmg sebhmg changed the title GEOPY-2769: Adding an environment optional parameter to fix testing issue in GEOPY-QA GEOPY-2769: optional environment parameter for pixi envs Apr 17, 2026
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see some suggestions on safety checks and naming

Comment thread .github/actions/reusable-python-setup_pixi/action.yml Outdated
Comment thread .github/actions/reusable-python-setup_pixi/action.yml
Comment thread .github/actions/reusable-python-setup_pixi/action.yml Outdated
Copilot AI review requested due to automatic review settings April 20, 2026 18:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/reusable-python-setup_pixi/action.yml
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml
Copilot AI review requested due to automatic review settings April 21, 2026 18:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-static_analysis.yml
Comment thread .github/workflows/reusable-python-static_analysis.yml
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
RomFloreani and others added 2 commits April 23, 2026 09:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 23, 2026 13:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/reusable-python-setup_pixi/action.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Copilot AI review requested due to automatic review settings April 23, 2026 20:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see suggestion to limit to pixi tsk and avoid shell injection

Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please see questions and suggestions. Also review feedback from Copilot

Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
@RomFloreani
Copy link
Copy Markdown
Contributor Author

@copilot apply changes based on the comments in this thread

- Remove `test-cmd` input (shell injection risk); hardcode default pytest command for conda/poetry/hatch
- Make `Validate pixi task` step conditional on pixi-task being set (skip when not provided)
- Fall back to default pytest/pylint command when pixi-task not specified
- Use `python` instead of `python3` for cross-platform compatibility
- Fix pixi-task-args JSON parsing to emit a clear error on invalid input
- Pass $FILES_PARAM to custom pixi task in static_analysis modified-files step

Agent-Logs-Url: https://github.com/MiraGeoscience/CI-tools/sessions/80178279-2577-46b3-a3cf-d4f46677967f

Co-authored-by: RomFloreani <270727719+RomFloreani@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 29, 2026 13:12
@RomFloreani RomFloreani review requested due to automatic review settings April 29, 2026 13:12
@RomFloreani RomFloreani requested a review from sebhmg April 29, 2026 13:25
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 29, 2026 14:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 29, 2026 14:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see if jq can help instead of inline python

Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Copilot AI review requested due to automatic review settings April 30, 2026 18:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-static_analysis.yml
Comment thread .github/workflows/reusable-python-pytest.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 30, 2026 19:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/reusable-python-static_analysis.yml
Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Copy link
Copy Markdown
Contributor

@sebhmg sebhmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see some more suggestion to simplify and replace inline python script by jq for task args

Comment thread .github/workflows/reusable-python-pytest.yml Outdated
Comment thread .github/workflows/reusable-python-static_analysis.yml Outdated
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.

4 participants