Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<title>predxt</title>' /tmp/predxt-pages.html