From f966d88ce5689766bf6098458512d40561bbf1ec Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 11 Dec 2023 21:50:56 +0100 Subject: [PATCH] verbose output for 3.12 --- .github/workflows/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5278e63b..013a1530 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,8 +60,10 @@ jobs: #readline if available as module: python -c 'import readline' 2> /dev/null || python -m pip install readline || echo 'readline not available' # asyncore/asynchat: - if [[ "$F2B_PYV" = 3.12 ]]; then python -m pip install pyasynchat || echo "can't install pyasynchat"; fi - if [[ "$F2B_PYV" = 3.12 ]]; then python -m pip install pyasyncore || echo "can't install pyasyncore"; fi + if dpkg --compare-versions "$F2B_PYV" ge 3.12; then + python -m pip install pyasynchat || echo "can't install pyasynchat"; + python -m pip install pyasyncore || echo "can't install pyasyncore"; + fi - name: Before scripts run: | @@ -82,7 +84,12 @@ jobs: python bin/fail2ban-testcases --verbosity=2 else echo "Skip systemd backend since systemd-python module must be fixed for python >= v.3.10 in GHA ..." + if dpkg --compare-versions "$F2B_PYV" lt 3.12; then python bin/fail2ban-testcases --verbosity=2 -i "[sS]ystemd|[jJ]ournal" + else + # need heavydebug for 3.12 to find error in testSetupInstallRoot: + python bin/fail2ban-testcases -l 5 --verbosity=2 -i "[sS]ystemd|[jJ]ournal" + fi fi #- name: Test suite (debug some systemd tests only)