-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.26 KB
/
Copy pathpython-integration.yml
File metadata and controls
53 lines (46 loc) · 1.26 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
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"
- name: Install cccc + cccc-sdk (editable)
run: |
python -m pip install -U pip
python -m pip install -e cccc
python -m pip install -e python
- name: Smoke (daemon + sdk)
run: |
set -euo pipefail
export CCCC_HOME="$PWD/.tmp_cccc_home"
cleanup() {
cccc daemon stop >/dev/null 2>&1 || true
}
trap cleanup EXIT
cccc daemon start
python python/examples/compat_check.py