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 71f58c25..5606af62 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -17,12 +17,10 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - with: - python-version: 3.11 + 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 25f84afb..d7137d1f 100644 --- a/.github/workflows/run_system_tests.yml +++ b/.github/workflows/run_system_tests.yml @@ -29,18 +29,17 @@ 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 - with: - python-version: 3.11 + 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: 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 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 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