From 48297d325435a577df4d58dd50ad2a4d5c1a4d9f Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 9 Nov 2026 14:39:22 -0600 Subject: [PATCH 1/4] docs: Update to Python 3.13 --- .github/workflows/generate_docs.yml | 2 -- .readthedocs.yml | 2 +- tox.ini | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate_docs.yml b/.github/workflows/generate_docs.yml index 71f58c25..4505eec1 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -18,8 +18,6 @@ jobs: persist-credentials: false - name: Set up Python uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - with: - python-version: 3.11 id: setup-python - name: Set up Poetry uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 diff --git a/.readthedocs.yml b/.readthedocs.yml index 600421d7..98dd0776 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -5,7 +5,7 @@ version: 2 build: os: ubuntu-24.04 tools: - python: "3.11" + python: "3.13" jobs: post_create_environment: - pip install poetry==2.4.3 diff --git a/tox.ini b/tox.ini index 077c5491..5c4e6a8d 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = [testenv:docs] # base_python should match the version specified in .readthedocs.yml and the PR workflow. -base_python = python3.11 +base_python = python3.13 commands = poetry run python -VV poetry install -v --only main,docs From 75c9a70467eefb5371f7131e995a398588c5b67e Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 9 Nov 2026 14:40:12 -0600 Subject: [PATCH 2/4] github: Use ni/python-actions/setup-python default Python version --- .github/workflows/run_system_tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/run_system_tests.yml b/.github/workflows/run_system_tests.yml index 25f84afb..84c31069 100644 --- a/.github/workflows/run_system_tests.yml +++ b/.github/workflows/run_system_tests.yml @@ -30,8 +30,6 @@ jobs: run: C:\nidaqmxconfig\targets\win64U\x64\msvc2022\release\nidaqmxconfig.exe --eraseconfig --import tests\max_config\nidaqmxMaxConfig.ini - name: Set up Python uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - with: - python-version: 3.11 - name: Set up Poetry uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Cache virtualenvs From 886ae952bb1ee4504c7d11c4c06bc2fefa371e23 Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Wed, 11 Nov 2026 14:06:12 -0600 Subject: [PATCH 3/4] github: Update ni/python-actions to v0.10.1 --- .github/workflows/build.yml | 6 +++--- .github/workflows/generate_docs.yml | 4 ++-- .github/workflows/publish.yml | 12 ++++++------ .github/workflows/run_system_tests.yml | 4 ++-- .github/workflows/run_unit_tests.yml | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be1a1dd1..44569b9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,14 +24,14 @@ jobs: submodules: true persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 id: setup-python with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Run linters and type checkers - uses: ni/python-actions/analyze-project@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/analyze-project@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 with: install-args: "--all-extras --with examples" - name: Run Bandit security checks diff --git a/.github/workflows/generate_docs.yml b/.github/workflows/generate_docs.yml index 4505eec1..5606af62 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -17,10 +17,10 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 id: setup-python - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Cache virtualenvs uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6fcbc52..616208c7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,14 +49,14 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 with: use-cache: false - name: Check project version if: github.event_name == 'release' - uses: ni/python-actions/check-project-version@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/check-project-version@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Build distribution packages run: poetry build - name: Upload build artifacts @@ -99,10 +99,10 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 with: use-cache: false - name: Update project version - uses: ni/python-actions/update-project-version@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/update-project-version@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 diff --git a/.github/workflows/run_system_tests.yml b/.github/workflows/run_system_tests.yml index 84c31069..bd13ba6c 100644 --- a/.github/workflows/run_system_tests.yml +++ b/.github/workflows/run_system_tests.yml @@ -29,9 +29,9 @@ jobs: - name: Import DAQmx config run: C:\nidaqmxconfig\targets\win64U\x64\msvc2022\release\nidaqmxconfig.exe --eraseconfig --import tests\max_config\nidaqmxMaxConfig.ini - name: Set up Python - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Cache virtualenvs uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml index 99a40ff7..488899e9 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -32,12 +32,12 @@ jobs: with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 id: setup-python with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Cache virtualenv (with test dependencies) uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: @@ -68,12 +68,12 @@ jobs: with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 id: setup-python with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Cache virtualenv (main only) uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 id: cache-nidaqmx-main-only From cb069eef0fc2ec909a8ad65126691dc121eb7230 Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Wed, 11 Nov 2026 16:16:37 -0600 Subject: [PATCH 4/4] github: Add Python version to system tests cache key --- .github/workflows/run_system_tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_system_tests.yml b/.github/workflows/run_system_tests.yml index bd13ba6c..d7137d1f 100644 --- a/.github/workflows/run_system_tests.yml +++ b/.github/workflows/run_system_tests.yml @@ -30,6 +30,7 @@ jobs: run: C:\nidaqmxconfig\targets\win64U\x64\msvc2022\release\nidaqmxconfig.exe --eraseconfig --import tests\max_config\nidaqmxMaxConfig.ini - name: Set up Python uses: ni/python-actions/setup-python@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 + id: setup-python - name: Set up Poetry uses: ni/python-actions/setup-poetry@edaf1454897cb4cd5f6fc0757cb62dee455e57fd # v0.10.1 - name: Cache virtualenvs @@ -38,7 +39,7 @@ jobs: path: | .venv .tox - key: run-system-tests-${{ runner.os }}-${{ matrix.configuration }}-${{ hashFiles('poetry.lock') }} + key: run-system-tests-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ matrix.configuration }}-${{ hashFiles('poetry.lock') }} - name: Install dependencies run: poetry install - name: Run system tests