-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 1.6 KB
/
Copy pathpython-integration.yml
File metadata and controls
67 lines (56 loc) · 1.6 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
56
57
58
59
60
61
62
63
64
65
66
67
name: python-integration
on:
push:
paths:
- "python/**"
- ".github/workflows/python-integration.yml"
pull_request:
paths:
- "python/**"
- ".github/workflows/python-integration.yml"
workflow_dispatch:
inputs:
cccc_ref:
description: "CCCC repo ref (branch/tag/sha) to test against"
required: true
default: "main"
jobs:
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout cccc-sdk
uses: actions/checkout@v4
- name: Checkout cccc (daemon)
uses: actions/checkout@v4
with:
repository: ChesterRa/cccc
ref: ${{ inputs.cccc_ref || 'main' }}
path: cccc
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/setup-node@v4
with:
node-version: "24.19.0"
- uses: dtolnay/rust-toolchain@1.88.0
- uses: Swatinem/rust-cache@v2
with:
workspaces: cccc -> target
- name: Build native CCCC
working-directory: cccc
run: cargo build --locked -p cccc --bin cccc
- name: Install cccc-sdk (editable)
run: |
python -m pip install -U pip
python -m pip install -e python
- name: Smoke (daemon + sdk)
run: |
set -euo pipefail
export CCCC_HOME="$PWD/.tmp_cccc_home"
export PATH="$PWD/cccc/target/debug:$PATH"
cleanup() {
cccc daemon stop >/dev/null 2>&1 || true
}
trap cleanup EXIT
cccc daemon start
python python/examples/compat_check.py