Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths: [.github/workflows/copilot-setup-steps.yml]
pull_request:
paths: [.github/workflows/copilot-setup-steps.yml]

jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
env:
PIP_TIMEOUT: 600
PIP_RETRIES: 2
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install package and dev dependencies
run: |
pip install -r requirements.txt
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

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

The workflow assumes requirements.txt exists but doesn't verify its presence. Consider adding error handling or using a conditional check to ensure the file exists before attempting installation.

Suggested change
pip install -r requirements.txt
if [ -f requirements.txt ]; then
pip install -r requirements.txt
else
echo "requirements.txt not found, skipping pip install."
fi

Copilot uses AI. Check for mistakes.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e .