This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
Update pyproject.toml #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
name: Build pip Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Init tools | |
uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- name: Create Package | |
shell: bash | |
run: | | |
pip install build | |
python3 -m build | |
- name: Output the result (debian) | |
uses: actions/[email protected] | |
with: | |
name: build | |
path: dist | |
if-no-files-found: error | |
test: | |
needs: build | |
name: Test pip Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Init tools | |
uses: actions/[email protected] | |
- name: Download the result | |
uses: actions/[email protected] | |
- name: Install Packages (debian) | |
shell: bash | |
run: | | |
cd $GITHUB_WORKSPACE | |
python3 -m pip install build/libpbskids_dl*-py3-none-any.whl | |
- name: Test Build (debian) | |
shell: bash | |
run: | | |
sudo chmod +x ./test.py | |
python3 ./test.py |