Skip to content

Commit e24b122

Browse files
authored
reorder commands to have hatch while checking for version (#263)
1 parent 1ff556a commit e24b122

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
with:
1717
# Use the minimum Python version in pyproject.toml (later versions should maintain backwards-compatibility)
1818
python-version: "3.10"
19+
- name: Install dependencies
20+
run: |
21+
pip install . && pip install hatch
1922
- name: check version
2023
run: |
2124
GIT_TAG=$(git describe --tags --exact-match 2>/dev/null || echo "No tag")
@@ -24,10 +27,6 @@ jobs:
2427
echo "version mismatch: $GIT_TAG and $CODE_VERSION"
2528
exit 1
2629
fi
27-
28-
- name: Install dependencies
29-
run: |
30-
pip install . && pip install hatch
3130
- name: Publish to PyPi
3231
env:
3332
HATCH_INDEX_USER: "__token__"

0 commit comments

Comments
 (0)