Feature/add services tests cicd (#48)
Build and Publish Site / docker (push) Successful in 6s
Deploy / deploy (push) Successful in 41s

Closes:
- uv caching #51
- act runner cache #49
- services tests #20

---------

Co-authored-by: Benjamin Labrecque <labrecque.benji@gmail.com>
Reviewed-on: #48
This commit was merged in pull request #48.
This commit is contained in:
2026-07-31 11:34:42 +02:00
co-authored by Benjamin Labrecque
parent cae92e5f3c
commit 7c86ddd3a3
21 changed files with 158 additions and 57 deletions
+36
View File
@@ -22,6 +22,9 @@ cd ~/gitea-runner
/usr/local/bin/act_runner register --instance https://gitea.psi.ch/ --labels hla-dev --token <token> --no-interactive
```
Note, if you use a systemd service with a config file as in the example below,
the labels will be read from that file.
This generates a `.runner` file.
@@ -42,6 +45,7 @@ tar -xf node-v20.11.1-linux-x64.tar.xz --strip-components=2 -C ~/.local/bin/ nod
rm node-v20.11.1-linux-x64.tar.xz
```
## Manually run the runner
```shell
@@ -105,6 +109,38 @@ SocketMode=0660
SocketGroup=podman
```
Created uv cache dir, for `UV_CACHE_DIR`:
```
sudo mkdir -m 777 /var/cache/uv
```
Change the location of the act cache and working directory (uv .venvs are built here, take up lots of space)
```
sudo mkdir -m 777 /var/lib/act_runner/cache
sudo mkdir -m 777 /var/lib/act_runner/work
```
and edit `/etc/act_runner/config.yaml`
```
cache:
dir: "/var/lib/act_runner/cache"
host:
# The parent directory of a job's working directory.
# If it's empty, $HOME/.cache/act/ will be used.
workdir_parent: "/var/lib/act_runner/work"
```
Configure the runner labels: (edit `/etc/act_runner/config.yaml`)
```
runner:
labels:
- "hla-dev"
```
Enable and restart:
```