-
Notifications
You must be signed in to change notification settings - Fork 429
70 lines (64 loc) · 1.94 KB
/
install-smoke.yml
File metadata and controls
70 lines (64 loc) · 1.94 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
---
name: Install Smoke Test
on:
push:
branches: [main, 1.0-dev]
paths-ignore:
- '**.md'
- 'LICENSE'
- 'docs/**'
- '.github/CODEOWNERS'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'
- '.github/dependabot.yml'
- '.gitignore'
- '.git-blame-ignore-revs'
- '.gemini/**'
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE'
- 'docs/**'
- '.github/CODEOWNERS'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'
- '.github/dependabot.yml'
- '.gitignore'
- '.git-blame-ignore-revs'
- '.gemini/**'
permissions:
contents: read
jobs:
install-smoke:
name: Verify ${{ matrix.profile.name }} install
runs-on: ubuntu-latest
if: github.repository == 'a2aproject/a2a-python'
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
profile:
- name: base
extras: ''
- name: http-server
extras: '[http-server]'
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Build package
run: uv build --wheel
- name: Install with ${{ matrix.profile.name }} dependencies only
run: |
uv venv .venv-smoke
# Install only the built wheel + the profile's extras -- no
# dev deps. This simulates what an end-user gets with
# `pip install a2a-sdk${{ matrix.profile.extras }}`.
WHEEL=$(ls dist/*.whl)
VIRTUAL_ENV=.venv-smoke uv pip install "${WHEEL}${{ matrix.profile.extras }}"
- name: List installed packages
run: VIRTUAL_ENV=.venv-smoke uv pip list
- name: Run import smoke test
run: .venv-smoke/bin/python scripts/test_install_smoke.py ${{ matrix.profile.name }}