26 lines
617 B
YAML
26 lines
617 B
YAML
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:
|
|
python-version: "3.12"
|
|
- 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/
|