summaryrefslogtreecommitdiffstats
path: root/.builds
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-02-09 20:11:00 -0500
committerEugene Triguba <hello@eugenetriguba.com>2026-02-09 21:33:59 -0500
commit96987705eae16cf5768396eddbea6cf52d152105 (patch)
treedf04677bf50d8d6a05d0df14bc672848237ea51d /.builds
parentReplace poetry with uv (diff)
downloadlirc-96987705eae16cf5768396eddbea6cf52d152105.zip
Replace github actions with sourcehut CI
Diffstat (limited to '.builds')
-rw-r--r--.builds/lint-and-test.yml29
-rw-r--r--.builds/publish.yml22
2 files changed, 51 insertions, 0 deletions
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"