diff --git a/.github/workflows/build_and_publish_to_pypi.yml b/.github/workflows/build_and_publish_to_pypi.yml index 594f56e9..eade7e4f 100644 --- a/.github/workflows/build_and_publish_to_pypi.yml +++ b/.github/workflows/build_and_publish_to_pypi.yml @@ -18,7 +18,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" - name: Install cibuildwheel run: | diff --git a/.github/workflows/build_and_publish_to_test_pypi.yml b/.github/workflows/build_and_publish_to_test_pypi.yml index f8ac644e..d209d2ab 100644 --- a/.github/workflows/build_and_publish_to_test_pypi.yml +++ b/.github/workflows/build_and_publish_to_test_pypi.yml @@ -36,7 +36,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" - name: Install cibuildwheel run: | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..bad7c0fa --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,52 @@ +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: '0 0 * * *' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'c++', 'python' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Install Linux Dependencies + if: matrix.language == 'c++' + run: | + sudo apt-get update; + sudo apt-get install -y libsnmp-dev libperl-dev; + + - name: Set up Python 3.10 + if: matrix.language == 'c++' + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Build Python Extension + if: matrix.language == 'c++' + run: | + pip install . + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index a943cc2c..7c92833f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ attrs==24.2.0 black==24.10.0 click== 8.1.7 colorama==0.4.6 -coverage==7.6.1 +coverage==7.6.2 flake8==7.1.1 iniconfig==2.0.0 mccabe==0.7.0 @@ -24,6 +24,6 @@ tomli==2.0.2 setuptools==75.1.0 urllib3==2.2.3 build==1.2.2 -cibuildwheel==2.21.2 +cibuildwheel==2.21.3 pip==24.2 wheel==0.44.0 \ No newline at end of file diff --git a/sphinx_docs_build/requirements.txt b/sphinx_docs_build/requirements.txt index ca92cb76..4f59594a 100644 --- a/sphinx_docs_build/requirements.txt +++ b/sphinx_docs_build/requirements.txt @@ -1,2 +1,2 @@ Sphinx==8.0.2 -sphinx-rtd-theme==3.0.0 \ No newline at end of file +sphinx-rtd-theme==3.0.1 \ No newline at end of file