-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (46 loc) · 1.33 KB
/
copilot-setup-steps.yml
File metadata and controls
54 lines (46 loc) · 1.33 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
name: Copilot Setup Steps
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/copilot-setup-steps.yml'
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# NOTE: Nix would be the preferred environment, but it causes Copilot agent
# Bash tool calls to silently hang. Using uv/Python setup as a workaround.
# - name: Install Nix
# uses: cachix/install-nix-action@v31
# with:
# nix_path: nixpkgs=channel:nixos-unstable
# - uses: nicknovitski/nix-develop@v1
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: uv sync --extra dev
- name: Verify environment setup
run: |
echo "Python version:"
python --version
echo ""
echo "UV version:"
uv --version
echo ""
echo "Pytest available:"
uv run pytest --version
echo ""
echo "Ruff available:"
uv run ruff --version
echo ""
echo "Environment setup complete!"