From 1ed8ae1f184270b9fefaca6a17e10ae4dfa4c4be Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Tue, 7 Oct 2025 11:10:15 +0200 Subject: [PATCH 1/2] Add 3rd party pyasyncore which was removed in Python 3.12 - pysnmplib still uses asyncore without having a upper cap for the supported Python version --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 28c1a1a..3a21057 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ -pysnmplib==5.0.21 +pysnmplib==5.0.24 nagiosplugin==1.3.3 +pyasyncore==1.0.4 From 4b6e18489ac33834eb75a0c30cb58963bcf37ae8 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Tue, 7 Oct 2025 11:11:37 +0200 Subject: [PATCH 2/2] Update GH actions --- .github/workflows/unittest.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 8ddcfec..c27be91 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -1,13 +1,18 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + - release/* + pull_request: + branches: + - main + - release/* jobs: gitHubActionForPytest: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.9] name: GitHub Action steps: - name: Checkout