-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.38 KB
/
Copy pathsetup-correctness.yml
File metadata and controls
49 lines (42 loc) · 1.38 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
name: Setup Correctness
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled]
schedule:
# Nightly regression — catches drift in upstream `uv` / Python image.
- cron: "17 6 * * *"
jobs:
setup-correctness:
# On PRs, only run when the `run-setup-tests` label is present.
# On push to main and on schedule, always run.
if: >
github.event_name == 'push' ||
github.event_name == 'schedule' ||
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'run-setup-tests'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install tmux
run: sudo apt-get update && sudo apt-get install -y tmux
- name: Install fake claude (CI-only shim)
run: |
mkdir -p .ci-bin
ln -sf "$PWD/tests/fixtures/fake-claude" .ci-bin/claude
echo "$PWD/.ci-bin" >> "$GITHUB_PATH"
- name: Show prereq versions
run: |
python3 --version
uv --version
git --version
tmux -V
claude --version
- name: Run setup correctness scenarios
run: bash tests/setup-correctness-test.sh