File tree Expand file tree Collapse file tree 4 files changed +94
-0
lines changed Expand file tree Collapse file tree 4 files changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ updates :
4+
5+ - package-ecosystem : " github-actions"
6+ directory : " /"
7+ schedule :
8+ interval : " monthly"
Original file line number Diff line number Diff line change 1+ name : Release on GitHub & PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ environment : release
12+ permissions :
13+ id-token : write
14+ contents : write
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ ref : ${{ github.ref_name }}
19+ - run : curl https://github.com/nim65s.gpg | gpg --import
20+ - name : validate signature
21+ run : >
22+ git verify-tag --raw ${{ github.ref_name }} 2>&1
23+ | grep -q 'VALIDSIG 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28'
24+ - run : echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
25+ - uses : astral-sh/setup-uv@v6
26+ - run : uv build
27+ - run : gh release create -t "Release ${{ env.TAG}}" -n "$(awk '/## \[${{ env.TAG }}] - /{flag=1;next}/## \[/{flag=0}flag' CHANGELOG.md)" ${{ env.TAG }} dist/*
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ - name : Publish package distributions to PyPI
31+ uses : pypa/gh-action-pypi-publish@release/v1
32+ with :
33+ skip-existing : true
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ test :
13+ runs-on : " ubuntu-latest"
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : astral-sh/setup-uv@v6
17+ - run : uv run ruff check .
18+ - run : uv run coverage run -m unittest
19+ - run : uv run coverage combine
20+ - run : uv run coverage report
Original file line number Diff line number Diff line change 1+ ci :
2+ autoupdate_schedule : quarterly
3+ repos :
4+ - repo : https://github.com/astral-sh/ruff-pre-commit
5+ rev : v0.12.3
6+ hooks :
7+ - id : ruff
8+ args :
9+ - --fix
10+ - --exit-non-zero-on-fix
11+ - id : ruff-format
12+ - repo : https://github.com/nim65s/pre-commit-sort
13+ rev : v0.4.0
14+ hooks :
15+ - id : pre-commit-sort
16+ - repo : https://github.com/pre-commit/pre-commit-hooks
17+ rev : v5.0.0
18+ hooks :
19+ - id : check-added-large-files
20+ - id : check-ast
21+ - id : check-executables-have-shebangs
22+ - id : check-json
23+ - id : check-merge-conflict
24+ - id : check-symlinks
25+ - id : check-toml
26+ - id : check-yaml
27+ - id : debug-statements
28+ - id : destroyed-symlinks
29+ - id : detect-private-key
30+ - id : end-of-file-fixer
31+ - id : fix-byte-order-marker
32+ - id : mixed-line-ending
33+ - id : trailing-whitespace
You can’t perform that action at this time.
0 commit comments