Files
TwitchDropsMiner/.github/workflows/ci.yml
Fengqing Liu ecd39a1c8e add SemVer release process with automated publishing
- Split workflows: CI (lint/validate) and Docker (dev builds)
- Add release.yml for versioned releases with manual trigger
- Release workflow creates release/<version> branches, updates version.py, builds Docker images with SemVer tags, and creates GitHub releases
- Docker images tagged as major.minor.patch, major.minor, major, latest for stable releases
- Pre-release versions tagged with exact version only

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 20:58:59 +11:00

69 lines
1.6 KiB
YAML

name: CI
on:
push:
pull_request:
workflow_dispatch:
env:
PYTHON_VERSION: '>=3.10'
jobs:
lint:
name: Code Quality (Ruff & Mypy)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_VERSION}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff mypy
- name: Run Ruff linter
run: |
ruff check src/
echo "✅ Ruff checks passed!"
- name: Run Mypy type checker
run: |
mypy src/
echo "✅ Mypy checks passed!"
continue-on-error: true # Don't fail CI on mypy errors yet
validate:
name: Validate Language Files
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_VERSION}}
- name: Validate language files
run: |
failed=()
for file in "lang/"*.json; do
if err="$(python -m json.tool "${file}" 2>&1 >/dev/null)"; then
echo "[OK] ${file}"
else
echo "[ERROR] ${file} ${err}"
failed+=("${file}")
fi
done
if [ "${#failed[@]}" -gt 0 ]; then
echo -e "\nFailed to validate the following language file(s): ${failed[@]}"
exit 1
fi