Skip to content

Commit

Permalink
Run poetry from within nix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed May 7, 2024
1 parent 9678d00 commit 5d94ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ jobs:
- name: Assert tag name matches version
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: |
version="$(poetry version --short)"
tag_name="${{ github.ref_name }}"
nix-shell --pure --run "poetry version --short > version.txt"
version=$(cat version.txt)
tag_name=${{ github.ref_name }}
if [ "$version" != "$tag_name" ]; then
echo "Tag name mismatch: $version != $tag_name"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ license = "Unlicense"
name = "starlette-compress"
readme = "README.md"
repository = "https://github.com/Zaczero/starlette-compress"
version = "0.1.5.3"
version = "0.1.5.4"

[tool.poetry.dependencies]
brotli = {version = ">=1", markers = "platform_python_implementation == 'CPython'"}
Expand Down

0 comments on commit 5d94ead

Please sign in to comment.