diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 94cdbde..5968e97 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -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'"