Skip to content
Merged
Changes from 3 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
77 changes: 77 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
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
Comment thread
chrisjsewell marked this conversation as resolved.

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
Comment thread
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: |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated in commit f2f21c6:

  • Renamed job to copilot-setup-steps (required for Copilot recognition)
  • Removed sphinx-design project installation step
  • Removed verification step
  • Added workflow triggers for push/PR on file changes
  • Updated comments to match official GitHub documentation

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)"