From 5e55d9e21b0d432b71f06a9374497602c4af3708 Mon Sep 17 00:00:00 2001 From: Mike Shriver Date: Mon, 21 Nov 2022 11:47:11 -0500 Subject: [PATCH] Add pre-commit to release WF --- .github/workflows/release_to_pypi.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_to_pypi.yml b/.github/workflows/release_to_pypi.yml index 5a4ad9fc..67bc9c9e 100644 --- a/.github/workflows/release_to_pypi.yml +++ b/.github/workflows/release_to_pypi.yml @@ -28,10 +28,15 @@ jobs: sudo apt-get install -y libgnutls28-dev libcurl4-openssl-dev libssl-dev # Uninstall pycurl - its likely not installed, but in case the ubuntu-latest packages change # then compile and install it with PYCURL_SSL_LIBRARY set to openssl - pip install -U pip + pip install -U pip wheel pip uninstall -y pycurl pip install --compile --no-cache-dir pycurl - pip install -Ur requirements-test.txt --upgrade-strategy eager + pip install -U .[test] + + - name: Pre Commit Checks + uses: pre-commit/action@v3.0.0 + with: + extra_args: --show-diff-on-failure - name: Run Unit Tests run: py.test tests/ -v --cov wrapanapi