Skip to content

Commit 4801f19

Browse files
authored
use actions/setup-python (#1312)
1 parent 458c3cf commit 4801f19

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
cache-dependency-path: |
2525
yarn.lock
2626
'examples/*/yarn.lock'
27+
- uses: actions/setup-python@v5
28+
with:
29+
python-version: '3.12'
30+
cache: 'pip'
31+
cache-dependency-path: 'examples/*/requirements.txt'
2732
- run: yarn --frozen-lockfile
2833
- id: date
2934
run: echo "date=$(TZ=America/Los_Angeles date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
@@ -61,10 +66,7 @@ jobs:
6166
run: yarn --frozen-lockfile && yarn build
6267
working-directory: examples/mortgage-rates
6368
- name: Build example "penguin-classification"
64-
run: |
65-
python -m pip install --upgrade pip
66-
pip install -r requirements.txt
67-
yarn --frozen-lockfile && yarn build
69+
run: pip install -r requirements.txt && yarn --frozen-lockfile && yarn build
6870
working-directory: examples/penguin-classification
6971
- name: Build example "plot"
7072
run: yarn --frozen-lockfile && yarn build

0 commit comments

Comments
 (0)