2024-09-19 00:55:17 +08:00
|
|
|
name: Python Package
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_call]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
package:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
2024-10-11 18:16:23 +08:00
|
|
|
python-version: "3.13"
|
2024-09-19 00:55:17 +08:00
|
|
|
- name: Install Python dependencies
|
|
|
|
run: |
|
|
|
|
pip3 install build
|
|
|
|
- name: Build a binary wheel and a source tarball
|
|
|
|
run: |
|
|
|
|
python -m build
|
|
|
|
- name: Store the distribution packages
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: python-package-distributions
|
|
|
|
path: dist/
|