Skip to content

Commit be7e6f6

Browse files
committed
Fix CI
1 parent 870bcea commit be7e6f6

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/reusable-docs.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,24 @@ jobs:
108108
runs-on: ubuntu-latest
109109
timeout-minutes: 40
110110
steps:
111-
- uses: actions/checkout@v4
111+
- name: 'Check out latest PR branch commit'
112+
uses: actions/checkout@v4
112113
with:
113114
persist-credentials: false
114-
- uses: actions/cache@v4
115+
ref: >-
116+
${{
117+
github.event_name == 'pull_request'
118+
&& github.event.pull_request.head.sha
119+
|| ''
120+
}}
121+
- name: 'Set up Python'
122+
uses: actions/setup-python@v5
115123
with:
116-
path: ~/.cache/pip
117-
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}
118-
restore-keys: |
119-
ubuntu-doc-
124+
python-version: '3'
125+
cache: 'pip'
126+
cache-dependency-path: 'Doc/requirements.txt'
120127
- name: 'Install build dependencies'
121-
run: make -C Doc/ PYTHON=../python venv
128+
run: make -C Doc/ venv
122129
- name: 'Build and load EPUB checks to file'
123130
continue-on-error: true
124131
run: |

0 commit comments

Comments
 (0)