From 1481dad8d60e7a7b222df27a70b576b55e23e2c1 Mon Sep 17 00:00:00 2001 From: John Agapiou Date: Wed, 13 Dec 2023 04:49:15 -0800 Subject: [PATCH] Pin version numbers in pypi-publish.yml PiperOrigin-RevId: 590552568 Change-Id: I8677b54d084e881090aea381c6d5feb211bd683c --- .github/workflows/pypi-publish.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 873c4d80..daa132f4 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -44,23 +44,21 @@ jobs: - name: Install Python dependencies run: | - pip install --upgrade pip - pip install build + pip install pip==23.3.1 + pip install build==1.0.3 + pip install pytest-xdist==3.5.0 + pip install setuptools==68.0.0 - name: Build distribution run: python -m build --outdir dist/ - name: Install from source distribution if: github.event_name == 'release' || inputs.test_wheel - run: | - pip install setuptools - pip -vvv install dist/*.whl + run: pip -vvv install dist/*.whl - name: Test installation if: github.event_name == 'release' || inputs.test_wheel - run: | - pip install pytest-xdist - pytest -n auto -rax --pyargs concordia + run: pytest -n auto -rax --pyargs concordia - name: Publish to TestPyPI if: github.event_name == 'release' || inputs.upload_to_test_pypi