Skip to content

update unit test CI env #19

update unit test CI env

update unit test CI env #19

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 16, Col: 3): The workflow must contain at least one job with no dependencies.
on:
release:
types: [ published ]
repository_dispatch:
workflow_dispatch:
inputs:
upload_pypi:
description: 'upload to PyPI'
type: boolean
required: false
default: false
jobs:
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.13
cache: 'pip'
- name: Install requirements
run: pip install build setuptools twine -U
- name: Build package
run: |
python -m build --sdist
twine check dist/*
pip install dist/*
- name: Upload sdist to github artifact
uses: actions/upload-artifact@v5
with:
name: logbar
path: dist/*gz
- name: Upload sdist to pypi
if: (github.event_name == 'release' || github.event.inputs.upload_pypi == 'true') && !cancelled()
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_KEY }}
run: |
python -m twine upload dist/*gz
- name: Clean cache
if: always()
run: |
pip cache purge || true
rm -rf ../LogBar/*