Skip to content

Commit 79f8d3c

Browse files
hbq1MctxDev
authored andcommitted
Install dependencies before running version checks in the release workflow.
PiperOrigin-RevId: 585048193
1 parent c0be0eb commit 79f8d3c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
1620
- name: Check consistency between the package version and release tag
1721
run: |
1822
RELEASE_VER=${GITHUB_REF#refs/*/}
@@ -21,10 +25,6 @@ jobs:
2125
then
2226
echo "package ver. ($PACKAGE_VER) != release ver. ($RELEASE_VER)"; exit 1
2327
fi
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install setuptools wheel twine
2828
- name: Build and publish
2929
env:
3030
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

0 commit comments

Comments
 (0)