From 4b3b0f4f49cc9a54f4a41a63f38a3f1822b577ce Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 17 Dec 2023 20:39:06 +0100 Subject: [PATCH] fix: ci --- .forgejo/workflows/package.yml | 4 +++- .forgejo/workflows/test.yml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/package.yml b/.forgejo/workflows/package.yml index 79af25d..14e3739 100644 --- a/.forgejo/workflows/package.yml +++ b/.forgejo/workflows/package.yml @@ -1,7 +1,9 @@ --- on: - push: tags + push: + tags: + - "v*" jobs: diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 171e778..dfd131e 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -10,11 +10,11 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v4 - name: test run: | - - apt update; apt install --yes python3-pip - - pip3 install -e .[test] - - python3 -m coverage run --rcfile=setup.cfg -m unittest discover tlsrpt_exporter - - python3 -m coverage combine - - python3 -m coverage report --rcfile=setup.cfg + apt update; apt install --yes python3-pip + pip3 install -e .[test] + python3 -m coverage run --rcfile=setup.cfg -m unittest discover tlsrpt_exporter + python3 -m coverage combine + python3 -m coverage report --rcfile=setup.cfg codestyle: runs-on: docker @@ -22,6 +22,6 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v4 - name: codestyle run: | - - apt update; apt install --yes python3-pip - - pip3 install -e .[test] - - pycodestyle tlsrpt_exporter + apt update; apt install --yes python3-pip + pip3 install -e .[test] + pycodestyle tlsrpt_exporter