prometheus-tlsrpt-exporter/.forgejo/workflows/test.yml

28 lines
739 B
YAML
Raw Normal View History

---
on: push
jobs:
test:
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: test
run: |
2023-12-17 20:39:06 +01:00
apt update; apt install --yes python3-pip
2023-12-17 20:41:51 +01:00
pip3 install --break-system-packages -e .[test]
2023-12-17 20:39:06 +01:00
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
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: codestyle
run: |
2023-12-17 20:39:06 +01:00
apt update; apt install --yes python3-pip
2023-12-17 20:41:51 +01:00
pip3 install --break-system-packages -e .[test]
2023-12-17 20:39:06 +01:00
pycodestyle tlsrpt_exporter