Skip to content

Remove Claude Code review workflow #41

Remove Claude Code review workflow

Remove Claude Code review workflow #41

name: python-packages
on:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-when-a-pull-request-is-approved
# pull_request:
# types:
# - review_requested
# branches:
# - main
push:
branches:
- main
tags:
- "v[0-9]+*"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Recursive checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
submodules: recursive
path: "."
fetch-depth: 0 # for tags
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel 'setuptools>=64' 'setuptools_scm>=8'
- name: Build package
run: python -m build
- run: du -h dist/*
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: python-packages
path: |
dist/*.whl
dist/*.tar.gz
# publish to GitHub Release
gh_release:
name: gh_release
needs: build
if: >-
github.repository == 'WaveSpeedAI/wavespeed-python' &&
github.event_name == 'push' &&
(github.ref == 'refs/heads/main' ||
(github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')))
environment: github-release
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 60
defaults:
run:
shell: bash
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
path: dist
- run: ls -R dist/
# create night release if it's a push to main
- if: github.repository == 'WaveSpeedAI/wavespeed-python' && github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Nightly Release
uses: andelf/nightly-release@c5ed4bdb7c1da04a4fa1e40bc5e67306f682563b # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Nightly Release $$'
prerelease: true
body: 'TODO: Add nightly release notes'
files: |
dist/*/*.whl
dist/*/*.tar.gz
# create release if it's a tag like vx.y.z
- if: github.repository == 'WaveSpeedAI/wavespeed-python' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with :
files: |
dist/*/*.whl
dist/*/*.tar.gz