-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.26 KB
/
copilot-setup-steps.yml
File metadata and controls
48 lines (39 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copilot Setup Steps
# This workflow defines the environment setup steps for GitHub Copilot coding agent.
# It runs when Copilot is assigned to work on issues in this repository.
# See: https://gh.io/copilot-coding-agent-tips
name: Copilot Setup Steps
on: workflow_dispatch
env:
PYTHON_VERSION: "3.13"
# Minimal permissions required for this workflow
permissions:
contents: read
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v4
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
# Install Poetry for dependency management
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
# Install project dependencies
- name: Install dependencies
run: |
poetry env use python
poetry install --no-interaction --no-root
# Install quality tools (matching CI/CD pipeline patterns)
- name: Install quality tools
run: |
poetry run pip install ruff mypy bandit