Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 9, 2025

Problem

The setup steps defined in .github/copilot-setup-steps.yml were not being executed because the file was located in the wrong directory. GitHub Actions workflows must be placed in the .github/workflows/ directory to be recognized and executed by the GitHub Actions runner.

This caused issues when trying to verify the setup process, as running python -c 'import pytensor' would fail with:

ModuleNotFoundError: No module named 'numpy'

Solution

Moved the workflow file from .github/copilot-setup-steps.yml to .github/workflows/copilot-setup-steps.yml.

What This Enables

With the file in the correct location, the workflow will now:

  1. Be properly recognized by GitHub Actions
  2. Automatically trigger when:
    • Manually invoked via workflow_dispatch
    • The workflow file itself is modified (via push or pull request)
  3. Execute the setup steps that:
    • Install Python 3.13 with Micromamba
    • Install all required dependencies (numpy, scipy, jax, etc.)
    • Install pytensor in development mode
    • Verify the installation by importing pytensor

This ensures that the Copilot agent environment is properly configured with all necessary dependencies before code execution.

Original prompt

Please run the command python -c 'import pytensor' and show the output. I want to check if the setup steps in .github/copilot-setup-steps.yml are being executed correctly.

If the command fails, please also try to move the file .github/copilot-setup-steps.yml to .github/workflows/copilot-setup-steps.yml and run the import command again.

*This pull request was created as a result of the following prompt from Copilot chat.* > Please run the command `python -c 'import pytensor'` and show the output. I want to check if the setup steps in `.github/copilot-setup-steps.yml` are being executed correctly. > > If the command fails, please also try to move the file `.github/copilot-setup-steps.yml` to `.github/workflows/copilot-setup-steps.yml` and run the import command again.

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@Copilot Copilot AI changed the title [WIP] Check pytensor import setup in YAML steps Move copilot-setup-steps.yml to workflows directory for proper execution Oct 9, 2025
@Copilot Copilot AI requested a review from ricardoV94 October 9, 2025 08:04
Copilot finished work on behalf of ricardoV94 October 9, 2025 08:04
@ricardoV94 ricardoV94 marked this pull request as ready for review October 9, 2025 08:08
@ricardoV94 ricardoV94 merged commit b79370c into main Oct 9, 2025
53 of 55 checks passed
@ricardoV94 ricardoV94 deleted the copilot/verify-pytensor-import branch October 9, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants