From e24b12252bc2285e8093ac9d27e442f64f266e89 Mon Sep 17 00:00:00 2001 From: Alex Rogozhnikov Date: Tue, 24 Dec 2024 15:29:24 -0800 Subject: [PATCH] reorder commands to have hatch while checking for version (#263) --- .github/workflows/publish-to-pypi.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 43a6086..56aa082 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -16,6 +16,9 @@ jobs: with: # Use the minimum Python version in pyproject.toml (later versions should maintain backwards-compatibility) python-version: "3.10" + - name: Install dependencies + run: | + pip install . && pip install hatch - name: check version run: | GIT_TAG=$(git describe --tags --exact-match 2>/dev/null || echo "No tag") @@ -24,10 +27,6 @@ jobs: echo "version mismatch: $GIT_TAG and $CODE_VERSION" exit 1 fi - - - name: Install dependencies - run: | - pip install . && pip install hatch - name: Publish to PyPi env: HATCH_INDEX_USER: "__token__"