-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (91 loc) · 3.07 KB
/
Copy pathci.yml
File metadata and controls
97 lines (91 loc) · 3.07 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
name: Validate repository
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install validation dependencies
run: python -m pip install --disable-pip-version-check ".[dev]"
- name: Run deterministic validation
run: python scripts/validate.py
unit:
name: Unit (${{ matrix.os }}, Python ${{ matrix.python }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
python: "3.10"
- os: ubuntu-24.04
python: "3.11"
- os: ubuntu-24.04
python: "3.12"
- os: ubuntu-24.04
python: "3.13"
- os: ubuntu-24.04
python: "3.14"
- os: macos-14
python: "3.10"
- os: macos-14
python: "3.14"
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install package and test dependencies
run: python -m pip install --disable-pip-version-check ".[dev]"
- name: Run unit tests
env:
PYTHONDONTWRITEBYTECODE: "1"
run: python -m unittest discover -s tests -p 'test_*.py'
package:
name: Build and inspect distributions
runs-on: ubuntu-24.04
timeout-minutes: 15
needs: [validate, unit]
steps:
- name: Check out source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install build frontend
run: python -m pip install --disable-pip-version-check "build==1.3.0"
- name: Build wheel and source distribution
run: python -m build
- name: Inspect package contents and privacy boundary
run: python scripts/ci/inspect_distribution.py dist --expected-version 0.0.5
- name: Smoke-test wheel outside the checkout
run: python scripts/ci/smoke_wheel.py dist/*.whl --expected-version 0.0.5
- name: Upload inspected distributions
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: agentflow-pr-distributions
path: dist/*
if-no-files-found: error
retention-days: 14