-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (43 loc) · 1.13 KB
/
main.yml
File metadata and controls
43 lines (43 loc) · 1.13 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
name: main
on: [push]
jobs:
check-tests:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.10', '3.14', 'pypy3.11']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip uv
- run: uv sync
- run: uv run make check-tests
check-dev:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.14'
- run: pip install --upgrade pip uv
- run: uv sync
- run: uv run make check-lint
- run: uv run make check-format
- run: uv build
release:
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
needs: [check-tests, check-dev]
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.14'
- run: pip install --upgrade pip uv
- run: uv build
- uses: pypa/gh-action-pypi-publish@release/v1