-
Notifications
You must be signed in to change notification settings - Fork 81
🔧 Add GitHub Copilot setup workflow for dev environment configuration #1628
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
chrisjsewell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The start of the file should look like:
name: "Copilot Setup Steps"
# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
# Set the permissions to the lowest permissions possible needed for your steps.
# Copilot will be given its own token for its operations.
permissions:
# We clone the repository as part of setup steps to install dependencies
contents: read
# You can define any steps you want, and they will run before the agent starts.
steps:
- name: Checkout code
uses: actions/checkout@v6Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
Updated in f8d0b35. The workflow now includes:
|
chrisjsewell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the pr description human readable
Updated the PR description to use a narrative format with clear sections explaining the purpose, features, and alignment with project standards. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1628 +/- ##
==========================================
+ Coverage 86.87% 88.37% +1.49%
==========================================
Files 56 70 +14
Lines 6532 9937 +3405
==========================================
+ Hits 5675 8782 +3107
- Misses 857 1155 +298
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overview
This PR adds a
.github/workflows/copilot-setup-steps.ymlworkflow file to configure the development environment for GitHub Copilot coding agents.Changes
The workflow file provides automated setup for the development environment with the following features:
Workflow Triggers:
workflow_dispatchthrough the repository's Actions tabpushandpull_requesttriggers with path filtering)Environment Setup:
tox- for running all project commands consistentlytox-uv- for faster tox environment creationpre-commit- for code quality checksSecurity & Best Practices:
contents: read) following the principle of least privilegeactions/checkout@v6,actions/setup-python@v5)copilot-setup-steps)The workflow aligns with the development tools documented in
AGENTS.mdand the dependency groups defined inpyproject.toml.Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.