Skip to content

Commit

Permalink
install toml requests packaging in publish_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lujzi05 committed Dec 12, 2024
1 parent 6491eaf commit 2bca0f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install toml requests packaging
- name: Validate Version
run: |
latest_version=$(curl -s https://pypi.org/pypi/views-stepshifter/json | jq -r .info.version)
latest_version=$(curl -s https://pypi.org/pypi/views-pipeline-core/json | jq -r .info.version)
new_version=$(python -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])")
python -c "from packaging.version import parse; assert parse('$new_version') > parse('$latest_version'), 'Version must be higher than $latest_version'"
Expand Down

0 comments on commit 2bca0f1

Please sign in to comment.