-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 853 Bytes
/
Copy pathrelease.yml
File metadata and controls
33 lines (30 loc) · 853 Bytes
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
name: Release
on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
package:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: pip
- name: Build and validate package
run: |
python -m pip install build twine
python -m build
python -m twine check dist/*
- name: Verify contract fixtures and release tests
run: |
python -m pip install -e ".[dev,observability]"
pytest tests/test_contract_compatibility.py tests/test_activity_timeline.py
- name: Publish immutable GitHub release assets
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/*