From 96987705eae16cf5768396eddbea6cf52d152105 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 9 Feb 2026 20:11:00 -0500 Subject: Replace github actions with sourcehut CI --- .builds/lint-and-test.yml | 29 +++++++++++++++++++++++++++++ .builds/publish.yml | 22 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .builds/lint-and-test.yml create mode 100644 .builds/publish.yml (limited to '.builds') diff --git a/.builds/lint-and-test.yml b/.builds/lint-and-test.yml new file mode 100644 index 0000000..70dcc61 --- /dev/null +++ b/.builds/lint-and-test.yml @@ -0,0 +1,29 @@ +image: alpine/3.23 +packages: + - uv + - lirc +sources: + - https://git.sr.ht/~eugenetriguba/lirc +triggers: + - action: email + condition: failure + to: builds@eugenetriguba.com +tasks: + - lint: | + cd lirc + ./scripts/lint.sh + - test39: | + cd lirc + ./scripts/test.sh --python 3.9 + - test310: | + cd lirc + ./scripts/test.sh --python 3.10 + - test311: | + cd lirc + ./scripts/test.sh --python 3.11 + - test312: | + cd lirc + ./scripts/test.sh --python 3.12 + - test313: | + cd lirc + ./scripts/test.sh --python 3.13 diff --git a/.builds/publish.yml b/.builds/publish.yml new file mode 100644 index 0000000..9808df0 --- /dev/null +++ b/.builds/publish.yml @@ -0,0 +1,22 @@ +image: alpine/3.23 +submitter: + git.sr.ht: + enabled: true + allow-refs: + - "refs/tags/*" +packages: + - uv +secrets: + - 7aa95247-8be4-48d2-8bc9-f081f2151b7e +sources: + - https://git.sr.ht/~eugenetriguba/lirc +triggers: + - action: email + condition: failure + to: builds@eugenetriguba.com +tasks: + - publish: | + cd lirc + set +x + TOKEN=$(cat ~/.pypi-token) + ./scripts/publish.sh --token "$TOKEN" -- cgit v1.2.3