Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7c76514

Browse files
author
David Robertson
authored
Deal with more GHA deprecations (#15576)
* Bump netlify PR * Manually cache mypy cache dir cache cache cache cache cache cache cache cache cache cache * Changelog
1 parent d19d1ed commit 7c76514

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/docs-pr-netlify.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
path: book
2323

2424
- name: 📤 Deploy to Netlify
25-
uses: matrix-org/netlify-pr-preview@v1
25+
uses: matrix-org/netlify-pr-preview@v2
2626
with:
2727
path: book
2828
owner: ${{ github.event.workflow_run.head_repository.owner.login }}

.github/workflows/tests.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ jobs:
107107
uses: dtolnay/[email protected]
108108
- uses: Swatinem/rust-cache@v2
109109

110-
# NB: I have two concerns with this action:
111-
# 1. We occasionally see odd mypy problems that aren't reproducible
112-
# locally with clean caches. I suspect some dodgy caching behaviour.
113-
# 2. The action uses GHA machinery that's deprecated
114-
# (https://github.com/AustinScola/mypy-cache-github-action/issues/277)
115-
# It may be simpler to use actions/cache ourselves to restore .mypy_cache.
110+
# Cribbed from
111+
# https://github.com/AustinScola/mypy-cache-github-action/blob/85ea4f2972abed39b33bd02c36e341b28ca59213/src/restore.ts#L10-L17
116112
- name: Restore/persist mypy's cache
117-
uses: AustinScola/mypy-cache-github-action@df56268388422ee282636ee2c7a9cc55ec644a41
113+
uses: actions/cache@v3
114+
with:
115+
path: |
116+
.mypy_cache
117+
key: mypy-cache-${{ github.context.sha }}
118+
restore-keys: mypy-cache-
118119

119120
- name: Run mypy
120121
run: poetry run mypy

changelog.d/15576.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deal with upcoming Github Actions deprecations.

0 commit comments

Comments
 (0)