fix: ci
Some checks failed
/ test (push) Successful in 53s
/ codestyle (push) Successful in 56s
/ build_wheel (push) Successful in 56s
/ build_debian (push) Failing after 1m32s

This commit is contained in:
s3lph 2023-12-18 00:08:07 +01:00
parent 05581cf104
commit 4a9f91bda5
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -15,7 +15,7 @@ jobs:
API_REPOSITORY_PYPI: "${{ secrets.API_REPOSITORY_PYPI }}" API_REPOSITORY_PYPI: "${{ secrets.API_REPOSITORY_PYPI }}"
steps: steps:
- uses: https://code.forgejo.org/actions/checkout@v4 - uses: https://code.forgejo.org/actions/checkout@v4
- name: build_debian - name: build_wheel
run: | run: |
apt update; apt install -y python3-pip apt update; apt install -y python3-pip
pip3 install --break-system-packages -e .[test] pip3 install --break-system-packages -e .[test]
@ -57,10 +57,10 @@ jobs:
cd package/debian cd package/debian
mkdir -p prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/ mkdir -p prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/
rsync -a prometheus-tlsrpt-exporter/usr/local/lib/python3.11/dist-packages/ prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/ rsync -a prometheus-tlsrpt-exporter/usr/local/lib/python3.11/dist-packages/ prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages/
rm -rf prometheus-tlsrpt-exporter/usr/local/lib/python3.11/ mv prometheus-tlsrpt-exporter/usr/local/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/usr/bin/
rm -rf prometheus-tlsrpt-exporter/usr/local/lib/ prometheus-tlsrpt-exporter/usr/local/bin/
find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \; find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
sed -re 's$#!/usr/local/bin/python3$#!/usr/bin/python3$' -i prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter
find prometheus-tlsrpt-exporter -type f -exec chmod 0644 {} \; find prometheus-tlsrpt-exporter -type f -exec chmod 0644 {} \;
find prometheus-tlsrpt-exporter -type d -exec chmod 755 {} \; find prometheus-tlsrpt-exporter -type d -exec chmod 755 {} \;
chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm