Skip to content

Commit f053b3c

Browse files
author
The ml_dtypes Authors
committed
Merge pull request #175 from jakevdp:action-hashes
PiperOrigin-RevId: 667750802
2 parents cfbd8ac + 60b201f commit f053b3c

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
lint:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
2020
- name: Set up Python 3.9
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
2222
with:
2323
python-version: 3.9
24-
- uses: pre-commit/action@v3.0.0
24+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # ratchet: pre-commit/action@v3
2525
build:
2626
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
2727
runs-on: ${{ matrix.os }}
@@ -36,11 +36,11 @@ jobs:
3636
python-version: "3.11"
3737

3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
4040
with:
4141
submodules: true
4242
- name: Set up Python ${{ matrix.python-version }}
43-
uses: actions/setup-python@v4
43+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
4444
with:
4545
python-version: ${{ matrix.python-version }}
4646
- name: Install dependencies
@@ -54,11 +54,11 @@ jobs:
5454
name: Python 3.12 with nightly numpy
5555
runs-on: ubuntu-latest
5656
steps:
57-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
5858
with:
5959
submodules: true
6060
- name: Set up Python 3.12
61-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
6262
with:
6363
python-version: "3.12"
6464
- name: Install dependencies
@@ -78,11 +78,11 @@ jobs:
7878
name: Python 3.9 with oldest supported numpy
7979
runs-on: ubuntu-latest
8080
steps:
81-
- uses: actions/checkout@v3
81+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
8282
with:
8383
submodules: true
8484
- name: Set up Python 3.9
85-
uses: actions/setup-python@v5
85+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
8686
with:
8787
python-version: "3.9"
8888
- name: Install dependencies

.github/workflows/wheels.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424
os: [ubuntu-20.04, macos-12, windows-2019]
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
2828
with:
2929
submodules: true
3030

3131
# Used to host cibuildwheel
32-
- uses: actions/setup-python@v4
32+
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
3333
with:
3434
python-version: "3.9"
3535

3636
- name: Set up QEMU
3737
if: runner.os == 'Linux'
38-
uses: docker/setup-qemu-action@v2
38+
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # ratchet: docker/setup-qemu-action@v3
3939
with:
4040
platforms: all
4141

@@ -52,24 +52,26 @@ jobs:
5252
CIBW_TEST_REQUIRES: absl-py pytest pytest-xdist
5353
CIBW_TEST_COMMAND: pytest -n auto {project}
5454

55-
- uses: actions/upload-artifact@v3
55+
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # ratchet: actions/upload-artifact@v4
5656
with:
5757
path: ./wheelhouse/*.whl
58+
overwrite: true
5859

5960
build_sdist:
6061
name: Build source distribution
6162
runs-on: ubuntu-latest
6263
steps:
63-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
6465
with:
6566
submodules: true
6667

6768
- name: Build sdist
6869
run: pipx run build --sdist
6970

70-
- uses: actions/upload-artifact@v3
71+
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # ratchet: actions/upload-artifact@v4
7172
with:
7273
path: dist/*.tar.gz
74+
overwrite: true
7375

7476
upload_pypi:
7577
name: Release & Upload to PyPI
@@ -78,13 +80,13 @@ jobs:
7880
# Only publish release to PyPI when a github release is created.
7981
if: github.event_name == 'release' && github.event.action == 'published'
8082
steps:
81-
- uses: actions/download-artifact@v3
83+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # ratchet:actions/download-artifact@v4
8284
with:
8385
# unpacks default artifact into dist/
8486
# if `name: artifact` is omitted, the action will create extra parent dir
8587
name: artifact
8688
path: dist
8789

88-
- uses: pypa/gh-action-pypi-publish@v1.5.0
90+
- uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # ratchet:pypa/gh-action-pypi-publish@v1.9
8991
with:
9092
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)