Repository navigation
48 lines (42 loc) · 1.5 KB
/
Copy pathpython.yml
File metadata and controls
48 lines (42 loc) · 1.5 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
name: python
on:
push:
branches: [main]
paths: ['python/**', 'tests/conformance/**', '.github/workflows/python.yml']
pull_request:
paths: ['python/**', 'tests/conformance/**', '.github/workflows/python.yml']
env:
SCARF_ANALYTICS: 'false'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22, cache: npm }
- uses: actions/setup-python@v5
with: { python-version: '${{ matrix.python-version }}' }
# The TS reference implementation generates the cross-implementation
# fixtures the Python suite asserts byte-identity against.
- run: npm ci
- run: npm run build:packages
- run: node python/tests/_gen_fixtures.mjs
- run: node python/tests/_gen_signed.mjs
- run: pip install -e 'python/[tokens]' pytest
# AHTML_LIVE_TESTS is OFF until the landing site is deployed at a
# resolvable AHTML_LIVE_URL (T2.9 / T3.6 human action) — enabling it
# today fails on DNS, not on the SDK. Flip to '1' after deploy.
- run: python -m pytest python/tests/ -q
build-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: '3.12' }
- run: pip install build twine
- run: python -m build python/
- run: twine check python/dist/*