File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Pre-commit
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [main]
7+
8+
9+
10+ jobs :
11+ check-code :
12+ runs-on : ubuntu-24.04
13+ steps :
14+ # This action sets the current path to the root of your github repo
15+ - uses : actions/checkout@v6
16+
17+ - name : Install pre-commit
18+ run : python3 -m pip install pre-commit
19+
20+ - name : Run hooks
21+ run : pre-commit run --all
Original file line number Diff line number Diff line change 1+ name : PyPI
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ tags :
8+ - " v*"
9+ pull_request :
10+ branches :
11+ - " main"
12+
13+
14+ jobs :
15+ dist :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v6
19+
20+ - name : Build SDist and wheel
21+ run : pipx run build
22+
23+ - uses : actions/upload-artifact@v5
24+ with :
25+ path : dist/*
26+
27+ - name : Check metadata
28+ run : pipx run twine check dist/*
29+
30+ publish :
31+ needs : [dist]
32+ runs-on : ubuntu-latest
33+ if : startsWith(github.ref, 'refs/tags')
34+ environment : pypi
35+ permissions :
36+ id-token : write
37+
38+ steps :
39+ - uses : actions/download-artifact@v6
40+ with :
41+ name : artifact
42+ path : dist
43+
44+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments