forked from openai/openai-agents-python
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.61 KB
/
copilot-setup-steps.yml
File metadata and controls
55 lines (46 loc) · 1.61 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
49
50
51
52
53
54
55
# Copilot Coding Agent — Environment Setup
# This workflow configures the development environment for Copilot's coding agent.
# It runs automatically when Copilot starts a coding session.
# Docs: https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent
name: "Copilot Setup Steps"
on: workflow_dispatch
jobs:
setup:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
# ── Node.js (JavaScript/TypeScript) ──
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install npm dependencies
run: |
if [ -f package-lock.json ] || [ -f package.json ]; then
npm ci --ignore-scripts 2>/dev/null || npm install --ignore-scripts 2>/dev/null || true
fi
# ── Python ──
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies
run: |
if [ -f requirements.txt ]; then
pip install -r requirements.txt 2>/dev/null || true
elif [ -f pyproject.toml ]; then
pip install -e ".[dev]" 2>/dev/null || pip install -e . 2>/dev/null || true
fi
# ── Go ──
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Install Go modules
run: |
if [ -f go.mod ]; then
go mod download 2>/dev/null || true
fi