-
Notifications
You must be signed in to change notification settings - Fork 67
🔧 Add copilot-setup-steps.yml workflow for GitHub Copilot coding agent #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
32eadb4
966b2d4
fab4702
f2f21c6
1762e8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| name: Copilot Setup Steps | ||
|
|
||
| # This workflow is designed to be referenced by GitHub Copilot | ||
| # to understand how to set up the development environment | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| setup: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| cache: pip | ||
|
chrisjsewell marked this conversation as resolved.
|
||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: npm | ||
|
|
||
| - name: Upgrade pip | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
|
|
||
| - name: Install uv (optional, for faster package management) | ||
| run: | | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not install sphinx-design itself, only the development tools. Also remove the verification job Look at https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment#preinstalling-tools-or-dependencies-in-copilots-environment for guidance on how to write this file
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in commit f2f21c6:
|
||
| pip install uv | ||
|
|
||
| - name: Install pre-commit and pre-commit-uv | ||
| run: | | ||
| pip install pre-commit pre-commit-uv | ||
|
|
||
| - name: Install tox and tox-uv | ||
| run: | | ||
| pip install tox tox-uv | ||
|
|
||
| - name: Install project dependencies | ||
| run: | | ||
| pip install -e .[testing,code-style] | ||
|
|
||
| - name: Install Node.js dependencies (for SASS compilation) | ||
| run: | | ||
| npm install | ||
|
|
||
| - name: Setup pre-commit hooks | ||
| run: | | ||
| pre-commit install | ||
|
|
||
| - name: Verify installations | ||
| run: | | ||
| echo "Python version:" | ||
| python --version | ||
| echo "" | ||
| echo "Node.js version:" | ||
| node --version | ||
| echo "" | ||
| echo "npm version:" | ||
| npm --version | ||
| echo "" | ||
| echo "pre-commit version:" | ||
| pre-commit --version | ||
| echo "" | ||
| echo "tox version:" | ||
| tox --version | ||
| echo "" | ||
| echo "Installed Python packages:" | ||
| pip list | grep -E "(pre-commit|tox|sphinx|pytest)" | ||
Uh oh!
There was an error while loading. Please reload this page.