FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vectorless-sdk/.github/workflows/publish-python.yml at main · hallelx2/vectorless-sdk · GitHub
hallelx2
/
vectorless-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vectorless-sdk
/
.github
/
workflows
/
publish-python.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
54 lines (42 loc) · 1.19 KB
Breadcrumbs
vectorless-sdk
/
.github
/
workflows
/
publish-python.yml
Copy path
File metadata and controls
54 lines (42 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
44
45
46
47
48
49
50
51
52
53
54
#
Publish Python SDK to PyPI when a tag like `py-v1.0.0` is pushed.
#
#
Trigger:
#
git tag py-v1.0.0
#
git push origin py-v1.0.0
#
#
Required secret: PYPI_TOKEN (PyPI API token for vectorless-sdk)
name
:
Publish Python SDK
on
:
push
:
tags
:
-
"
py-v*
"
permissions
:
contents
:
read
jobs
:
publish
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/setup-python@v5
with
:
python-version
:
"
3.12
"
-
name
:
Install build tools
run
:
pip install hatchling build ruff
-
name
:
Lint
working-directory
:
python
run
:
ruff check vectorless/
-
name
:
Format check
working-directory
:
python
run
:
ruff format --check vectorless/
-
name
:
Build sdist and wheel
working-directory
:
python
run
:
python -m build
-
name
:
Verify package installs
run
:
|
pip install python/dist/*.whl
python -c "import vectorless; print(f'vectorless {vectorless.__version__}')"
-
name
:
Publish to PyPI
uses
:
pypa/gh-action-pypi-publish@release/v1
with
:
password
:
${{ secrets.PYPI_TOKEN }}
packages-dir
:
python/dist/
Back
|
FazBrowse Home
|
New Git URL