Skip to content

Commit 30fe3d2

Browse files
committed
workflows
1 parent 4120bad commit 30fe3d2

7 files changed

Lines changed: 101 additions & 238 deletions

File tree

‎.github/workflows/on_push.yml‎

Lines changed: 0 additions & 50 deletions
This file was deleted.

‎.github/workflows/on_push_coverage.yml‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

‎.github/workflows/on_release.yml‎

Lines changed: 0 additions & 69 deletions
This file was deleted.

‎.github/workflows/release.yaml‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*.*"
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
19+
- uses: actions/setup-python@v6
20+
with:
21+
python-version: "3.13"
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v6
25+
26+
- name: Build distributions
27+
run: uv build
28+
29+
- name: Upload build artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: python-distributions
33+
path: dist/*
34+
35+
36+
- name: Create GitHub Release
37+
id: release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
generate_release_notes: true
41+
files: dist/*
42+
43+
44+
publish:
45+
runs-on: ubuntu-latest
46+
needs: build
47+
48+
permissions:
49+
id-token: write
50+
51+
steps:
52+
- uses: actions/download-artifact@v5
53+
with:
54+
name: python-distributions
55+
path: dist
56+
57+
- name: Publish to PyPI
58+
uses: pypa/gh-action-pypi-publish@release/v1

‎.github/workflows/sanity_check.yml‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.github/workflows/test-lint.yaml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Python Test and Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Python Test and Lint
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
python-version:
19+
- '3.12'
20+
- '3.13'
21+
- '3.14'
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install UV
33+
run: |
34+
curl -LsSf https://astral.sh/uv/install.sh | sh
35+
36+
- name: Install dependencies
37+
run: uv sync --all-extras # make sure uv, and pip exist for tests
38+
- name: Run ruff
39+
run: uv run ruff check --output-format=github
40+
continue-on-error: true
41+
- name: Run pytest
42+
run: uv run pytest tests -vv
43+

‎.github/workflows/update_docs.yml‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)