🔧 Add GitHub Copilot setup workflow for dev environment configuration#1628
🔧 Add GitHub Copilot setup workflow for dev environment configuration#1628chrisjsewell merged 4 commits intomasterfrom
Conversation
Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
chrisjsewell
left a comment
There was a problem hiding this comment.
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.
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.82% +1.94%
==========================================
Files 56 70 +14
Lines 6532 9961 +3429
==========================================
+ Hits 5675 8848 +3173
- Misses 857 1113 +256
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.