Skip to content

Commit 363dea8

Browse files
Copilotnjzjz
andcommitted
feat: add copilot-setup-steps.yml workflow for agent environment setup
Co-authored-by: njzjz <[email protected]>
1 parent da6b6ff commit 363dea8

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Copilot Setup Steps
3+
4+
on:
5+
workflow_dispatch: {}
6+
7+
jobs:
8+
copilot-setup-steps:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v5
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Set up uv
20+
uses: astral-sh/setup-uv@v6
21+
with:
22+
enable-cache: true
23+
cache-dependency-glob: |
24+
**/requirements*.txt
25+
**/pyproject.toml
26+
27+
- name: Create virtual environment and install dependencies
28+
run: |
29+
uv venv .venv
30+
source .venv/bin/activate
31+
uv pip install .[test] coverage
32+
33+
- name: Install development tools
34+
run: |
35+
uv tool install pre-commit
36+
uv tool install pyright
37+
38+
- name: Set up pre-commit hooks
39+
run: |
40+
source .venv/bin/activate
41+
pre-commit install --install-hooks
42+
43+
- name: Verify installation
44+
run: |
45+
source .venv/bin/activate
46+
python --version
47+
uv --version
48+
pre-commit --version
49+
pyright --version
50+
python -c "import dpdispatcher; print('DPDispatcher installed successfully')"

0 commit comments

Comments
 (0)