Files
openhop-repeater-influxdb-p…/.gitea/workflows/ci.yml
T
richandClaude Opus 5.5 7cc835798a
CI / test-and-build (3.10) (push) Canceled after 0s
CI / test-and-build (3.11) (push) Canceled after 0s
CI / test-and-build (3.12) (push) Canceled after 0s
CI / test-and-build (3.13) (push) Canceled after 0s
Move CI to Gitea Actions
The repository is hosted on Gitea, so the workflow moves to
.gitea/workflows/. actions/upload-artifact is pinned to v3 because
Gitea Actions does not support v4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 10:34:40 -04:00

57 lines
1.7 KiB
YAML

name: CI
on:
push:
pull_request:
permissions:
contents: read
env:
REPEATER_BASELINE: 13eb8b2ea8b1cdb4a07ed6e282dc99e3aa8a5a8b
jobs:
test-and-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: python -m pip install -e '.[dev]'
- name: Lint
run: ruff check src tests scripts
- name: Test
run: pytest -q -rs
- name: Dashboard is regenerated
run: |
python scripts/build_dashboard.py
git diff --exit-code dashboards/
- name: Build wheel
run: |
python -m build --wheel
test "$(ls dist/*.whl | wc -l)" -eq 1
- name: Validate wheel with the Repeater plugin parser
run: |
git clone --no-checkout https://github.com/openhop-dev/openhop_repeater.git repeater-source
git -C repeater-source checkout --detach "$REPEATER_BASELINE"
PYTHONPATH=repeater-source python scripts/validate_wheel.py dist/*.whl
- name: Smoke-test installed wheel outside the source tree
run: |
smoke="$(mktemp -d)"
python -m venv "$smoke/venv"
"$smoke/venv/bin/pip" install dist/*.whl
cd "$smoke"
"$smoke/venv/bin/openhop-influxdb" --version
OPENHOP_PLUGIN_DATA="$smoke/data" "$smoke/venv/bin/openhop-influxdb" --check-config
- uses: actions/upload-artifact@v3 # Gitea Actions does not support v4
if: matrix.python-version == '3.11'
with:
name: wheel
path: dist/*.whl