GRM-6: fix: resolve idempotence issues and testing infrastructure

This commit is contained in:
Emil Simeonov
2026-06-18 03:36:20 +02:00
parent cc000c226c
commit 2530ec54cc
2 changed files with 0 additions and 42 deletions
-7
View File
@@ -33,13 +33,6 @@ repos:
pass_filenames: false
stages: [pre-commit]
- id: detect-secrets
name: detect-secrets
entry: .venv/bin/detect-secrets scan --baseline .secrets.baseline
language: system
pass_filenames: false
stages: [pre-commit]
- id: pytest-cov
name: pytest with 100% coverage
entry: .venv/bin/pytest tests/unit/ --cov=src/gitea_runner_manager --cov-report=term-missing --cov-fail-under=100
@@ -1,35 +0,0 @@
---
- name: Get latest act_runner release info
ansible.builtin.uri:
url: https://gitea.com/gitea/act_runner/releases/latest
return_content: true
headers:
Accept: application/json
register: act_runner_release
when: act_runner_version | default('latest') == 'latest'
changed_when: false
- name: Set act_runner version from latest release
ansible.builtin.set_fact:
act_runner_version: "{{ act_runner_release.json.tag_name }}"
when: act_runner_version | default('latest') == 'latest'
- name: Set act_runner download URL
ansible.builtin.set_fact:
act_runner_url: >-
https://gitea.com/gitea/act_runner/releases/download/{{ act_runner_version }}/
act_runner-{{ act_runner_version }}-linux-{{ ansible_architecture | regex_replace('x86_64', 'amd64') }}
- name: Ensure /usr/local/bin directory exists
ansible.builtin.file:
path: /usr/local/bin
state: directory
mode: "0755"
- name: Download act_runner binary
ansible.builtin.get_url:
url: "{{ act_runner_url }}"
dest: /usr/local/bin/act_runner
mode: "0755"
force: true
notify: Restart act-runner