diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2512be09a..63bdaa184 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Poetry uses: ni/python-actions/setup-poetry@v0.1.0 - name: Cache virtualenv (all extras) - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: .venv key: nidaqmx-all-extras-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }} diff --git a/.github/workflows/generate_docs.yml b/.github/workflows/generate_docs.yml index 6dce2fe7c..1ca0acdaf 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Poetry uses: ni/python-actions/setup-poetry@v0.1.0 - name: Cache virtualenvs - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: | .venv diff --git a/.github/workflows/run_system_tests.yml b/.github/workflows/run_system_tests.yml index 224f9dba0..58b52f063 100644 --- a/.github/workflows/run_system_tests.yml +++ b/.github/workflows/run_system_tests.yml @@ -24,7 +24,7 @@ jobs: - name: Import DAQmx config run: C:\nidaqmxconfig\targets\win64U\x64\msvc-14.0\release\nidaqmxconfig.exe --eraseconfig --import tests\max_config\nidaqmxMaxConfig.ini - name: Cache virtualenvs - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: | .venv diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml index 0af900470..4afd50ca2 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Poetry uses: ni/python-actions/setup-poetry@v0.1.0 - name: Restore cached virtualenv (main only) - uses: actions/cache/restore@v4 + uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 id: restore-nidaqmx-main-only with: path: .venv @@ -37,13 +37,13 @@ jobs: - name: check installdriver subcommand can be invoked run: poetry run nidaqmx installdriver --help - name: Save cached virtualenv (main only) - uses: actions/cache/save@v4 + uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 if: steps.restore-nidaqmx-main-only.outputs.cache-hit != 'true' with: path: .venv key: ${{ steps.restore-nidaqmx-main-only.outputs.cache-primary-key }} - name: Cache virtualenv (with dev dependencies) - uses: actions/cache@v4 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: .venv key: nidaqmx-with-dev-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}