Skip to content

Commit

Permalink
CI: use ratchet to pin actions commits
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Dec 11, 2023
1 parent 9d0a991 commit ae34d6d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # ratchet: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}
if: ${{github.ref != 'refs/heads/main'}}
Expand All @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # ratchet:actions/setup-python@v4
with:
python-version: 3.11
- uses: pre-commit/action@v3.0.0
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # ratchet: pre-commit/action@v3.0.0

build:
name: "build ${{ matrix.name-prefix }} (py ${{ matrix.python-version }} on ${{ matrix.os }}, x64=${{ matrix.enable-x64}})"
Expand All @@ -59,7 +59,7 @@ jobs:
num_generated_cases: 1
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # ratchet: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}
if: ${{github.ref != 'refs/heads/main'}}
Expand All @@ -74,7 +74,7 @@ jobs:
python -m pip install --upgrade pip wheel
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # ratchet: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('**/setup.py', '**/requirements.txt', '**/test-requirements.txt') }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
python-version: [3.9]
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # ratchet: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}
if: ${{github.ref != 'refs/heads/main'}}
Expand All @@ -126,7 +126,7 @@ jobs:
python -m pip install --upgrade pip wheel
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # ratchet: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-docs-${{ hashFiles('**/setup.py', '**/requirements.txt', '**/test-requirements.txt') }}
Expand All @@ -152,7 +152,7 @@ jobs:
python-version: [3.9]
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # ratchet: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}
if: ${{github.ref != 'refs/heads/main'}}
Expand All @@ -167,7 +167,7 @@ jobs:
python -m pip install --upgrade pip wheel
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # ratchet: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-docs-${{ hashFiles('**/setup.py', '**/requirements.txt', '**/test-requirements.txt') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jax-array-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:

steps:
- name: Checkout jax
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet: actions/checkout@v4
- name: Checkout array-api-tests
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet: actions/checkout@v4
with:
repository: data-apis/array-api-tests
ref: '7c89cf1a42eb18d4fadecda1cac8769d0138753c' # Latest commit as of 2023-12-07
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheel_win_x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # ratchet: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand All @@ -39,7 +39,7 @@ jobs:
"C:\\msys64\\;C:\\msys64\\usr\\bin\\;" >> $env:GITHUB_PATH
python.exe build\build.py --bazel_options=--color=yes --verbose
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # ratchet: actions/upload_artifact@v3
with:
name: wheels
path: ${{ github.workspace }}\dist\*.whl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.0
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # ratchet: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
"C:\\msys64\\;C:\\msys64\\usr\\bin\\;" >> $env:GITHUB_PATH
python.exe build\build.py ('--bazel_options=--override_repository=xla=${{ github.workspace }}\xla' -replace '\\','\\') --bazel_options=--color=yes
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # ratchet: actions/upload_artifact@v3
with:
name: wheels
path: ${{ github.workspace }}\jax\dist\*.whl
Expand Down

0 comments on commit ae34d6d

Please sign in to comment.