From 037eb3efd019e8cc2488ca36db4ea685d8f6c401 Mon Sep 17 00:00:00 2001 From: Iurii Kemaev Date: Wed, 22 Nov 2023 09:52:27 -0800 Subject: [PATCH] Install dependencies before running version checks in the release workflow. PiperOrigin-RevId: 584656056 --- .github/workflows/pypi-publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 2efa91b..238420b 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -8,11 +8,15 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine - name: Check consistency between the package version and release tag run: | RELEASE_VER=${GITHUB_REF#refs/*/} @@ -21,10 +25,6 @@ jobs: then echo "package ver. ($PACKAGE_VER) != release ver. ($RELEASE_VER)"; exit 1 fi - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}