-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 881 Bytes
/
release.yaml
File metadata and controls
43 lines (32 loc) · 881 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
34
35
36
37
38
39
40
41
42
43
name: Release
on:
workflow_dispatch:
release:
types: [released]
permissions:
contents: read
id-token: write # Required for OIDC publishing to PyPI
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -e ".[dev]"
pip install build twine
- name: Run linting
run: ruff check hyphen tests
- name: Run type checking
run: mypy hyphen
- name: Run tests
run: pytest --ignore=tests/acceptance
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# No password needed - uses OIDC trusted publishing