diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3a4fcf3..be1a1dd1 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@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 id: setup-python with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: ni/python-actions/setup-poetry@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Run linters and type checkers - uses: ni/python-actions/analyze-project@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/analyze-project@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 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 c92f8e32..71f58c25 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -17,10 +17,12 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + 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@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Cache virtualenvs uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 50e85c9c..f6fcbc52 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@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Set up Poetry - uses: ni/python-actions/setup-poetry@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 with: use-cache: false - name: Check project version if: github.event_name == 'release' - uses: ni/python-actions/check-project-version@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/check-project-version@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Build distribution packages run: poetry build - name: Upload build artifacts @@ -83,7 +83,7 @@ jobs: path: dist/ - run: ls -lR - name: Upload to ${{ env.environment }} - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 + uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 with: repository-url: ${{ fromJson(env.environment-info)[env.environment].upload-url }} update_version: @@ -99,10 +99,10 @@ jobs: with: persist-credentials: false - name: Set up Python - uses: ni/python-actions/setup-python@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Set up Poetry - uses: ni/python-actions/setup-poetry@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 with: use-cache: false - name: Update project version - uses: ni/python-actions/update-project-version@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/update-project-version@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 diff --git a/.github/workflows/run_system_tests.yml b/.github/workflows/run_system_tests.yml index 83bde8d0..25f84afb 100644 --- a/.github/workflows/run_system_tests.yml +++ b/.github/workflows/run_system_tests.yml @@ -29,9 +29,11 @@ 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@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 + with: + python-version: 3.11 - name: Set up Poetry - uses: ni/python-actions/setup-poetry@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - 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 a8543d70..99a40ff7 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -14,7 +14,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: [3.11, 3.12, 3.13, 3.14, 3.14t, pypy3.11] + # PyPy testing is disabled to work around https://github.com/ni/nidaqmx-python/issues/1048 - PyPy tests fail after Poetry 2.4.x upgrade + python-version: [3.11, 3.12, 3.13, 3.14, 3.14t] # Fail-fast skews the pass/fail ratio and seems to make pytest produce # incomplete JUnit XML results. fail-fast: false @@ -31,12 +32,12 @@ jobs: with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: ni/python-actions/setup-python@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 id: setup-python with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: ni/python-actions/setup-poetry@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Cache virtualenv (with test dependencies) uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: @@ -59,19 +60,20 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: [3.11, 3.14, pypy3.11] + # PyPy testing is disabled to work around https://github.com/ni/nidaqmx-python/issues/1048 - PyPy tests fail after Poetry 2.4.x upgrade + python-version: [3.11, 3.14] steps: - name: Check out repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: ni/python-actions/setup-python@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-python@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 id: setup-python with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: ni/python-actions/setup-poetry@dee640bba235ae28fdc6b7337c643bd06358ae90 # v0.9.0 + uses: ni/python-actions/setup-poetry@36d77b6a215e106c33e30638943d5bc5233bef2f # v0.10 - name: Cache virtualenv (main only) uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 id: cache-nidaqmx-main-only diff --git a/.github/workflows/sync_github_issues_to_azdo.yml b/.github/workflows/sync_github_issues_to_azdo.yml index a919049c..88cbb411 100644 --- a/.github/workflows/sync_github_issues_to_azdo.yml +++ b/.github/workflows/sync_github_issues_to_azdo.yml @@ -15,7 +15,7 @@ jobs: if: ${{ !github.event.issue.pull_request && github.event.issue.title != 'Dependency Dashboard' }} runs-on: ubuntu-latest steps: - - uses: danhellem/github-actions-issue-to-work-item@45eb3b46e684f2acd2954f02ef70350c835ee4bb # v2.4 + - uses: danhellem/github-actions-issue-to-work-item@8d0ead9b49a65aa66dac6949b1ff149d7ef8b4de # v2.5 env: ado_token: "${{ secrets.AZDO_WORK_ITEM_TOKEN }}" github_token: "${{ secrets.GH_REPO_TOKEN }}" diff --git a/.readthedocs.yml b/.readthedocs.yml index a3a9bcf3..600421d7 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,7 +8,7 @@ build: python: "3.11" jobs: post_create_environment: - - pip install poetry==2.1.4 + - pip install poetry==2.4.3 post_install: - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --only main,docs