-
-
Notifications
You must be signed in to change notification settings - Fork 37
43 lines (40 loc) · 1.11 KB
/
build.yml
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: package
on: [push]
permissions:
id-token: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install -y -qq libicu-dev
python -m pip install --upgrade pip wheel pyicu setuptools
pip install -e '.[dev]'
- name: Check type annotations (strict)
run: |
make typecheck
- name: Run tests
run: |
make test
- name: Build a distribution
run: |
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.python == '3.12'
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
verbose: true