diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index c621410a7..33b6329ea 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -72,6 +72,9 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + - uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: Generate GitHub App Token id: app-token uses: actions/create-github-app-token@v3 @@ -87,6 +90,32 @@ jobs: poetry install poetry run pytest -v tests/unit + test-splunk-unit-python-313: + # Keep this advisory while Python 3.13 compatibility is being established. + continue-on-error: true + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v3 + with: + client-id: ${{ secrets.GH_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + - name: Install dependencies and run unit tests + run: | + git config --global --add url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com".insteadOf https://github.com + git config --global --add url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com".insteadOf ssh://git@github.com + curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1 + poetry install + poetry run pytest -v tests/unit + test-splunk-external: runs-on: ubuntu-22.04 diff --git a/pyproject.toml b/pyproject.toml index 0558636d8..c0a2463b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Topic :: Software Development :: Testing", "Programming Language :: Python", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.13", "Operating System :: OS Independent", "License :: OSI Approved :: Apache Software License", ]