From bea17d11b3deabf0a8e5e0bef38cd71356641cc5 Mon Sep 17 00:00:00 2001 From: nekrasovp Date: Sun, 12 Jul 2026 14:14:18 +0200 Subject: [PATCH] Fix CI version check and verify Pages deployment --- .github/workflows/ci.yml | 10 +++++++++- .github/workflows/pages.yml | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 749a627..2758b18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,10 +63,18 @@ jobs: /tmp/predxt-smoke/bin/python -m pip install --upgrade pip /tmp/predxt-smoke/bin/python -m pip install dist/*.whl /tmp/predxt-smoke/bin/python - <<'PY' + from importlib.metadata import version + from pathlib import Path + import tomllib + import predxt import predxt.kalshi import predxt.opinion import predxt.polymarket - assert predxt.__version__ == "0.1.0" + with Path("pyproject.toml").open("rb") as pyproject_file: + project_version = tomllib.load(pyproject_file)["project"]["version"] + + assert version("predxt") == project_version + assert predxt.__version__ == project_version PY diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1ed3067..92af15d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -49,3 +49,18 @@ jobs: - name: Deploy to Pages id: deployment uses: actions/deploy-pages@v4 + + - name: Verify deployed site + env: + SITE_URL: ${{ steps.deployment.outputs.page_url }} + run: | + curl --fail --silent --show-error --location \ + --retry 6 \ + --retry-delay 10 \ + --retry-all-errors \ + --retry-max-time 180 \ + --connect-timeout 10 \ + --max-time 30 \ + "${SITE_URL}" \ + --output /tmp/predxt-pages.html + grep -Fq 'predxt' /tmp/predxt-pages.html