chore: import upstream snapshot with attribution
Publish Docker image / Build and publish (push) Failing after 0s
CI / Python tests (push) Failing after 4s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:03:55 +08:00
commit 9a6da7d40d
154 changed files with 29748 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
tests:
name: Python tests
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install dependencies
run: uv sync --frozen
- name: Compile Python sources
run: uv run python -m compileall app cli.py main.py webui test
- name: Run deterministic unit tests
run: uv run python -X utf8 -m unittest test.services.test_state test.services.test_task test.services.test_schema test.services.test_video_effects test.services.test_webui_i18n
+73
View File
@@ -0,0 +1,73 @@
name: Publish Docker image
on:
push:
branches:
- main
tags:
- "v*"
paths-ignore:
- "README*.md"
- "docs/**"
- ".github/workflows/docker-ghcr.yml"
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: docker-ghcr-${{ github.ref }}
cancel-in-progress: true
env:
IMAGE_NAME: ghcr.io/harry0703/moneyprinterturbo
jobs:
publish:
name: Build and publish
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
build-args: |
DOCKER_BUILD_MIRROR=default
PIP_USE_OFFICIAL=1
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max