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
27 changes: 27 additions & 0 deletions .github/workflows/basic_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,30 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

wheel-smoke:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel setuptools

- name: Build wheel
run: python -m build

- name: Smoke test installed wheel
run: |
python -m venv /tmp/circe-wheel-smoke
/tmp/circe-wheel-smoke/bin/pip install dist/*.whl
/tmp/circe-wheel-smoke/bin/circe --help
/tmp/circe-wheel-smoke/bin/python -c "import circe; print(circe.__version__)"
9 changes: 7 additions & 2 deletions circe/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@
- cohort_print_friendly(): Generate Markdown from cohort expression
"""

from typing import Literal, Optional
from typing import TYPE_CHECKING, Any, Literal, Optional

from .cohortdefinition import (
BuildExpressionQueryOptions,
CohortExpression,
CohortExpressionQueryBuilder,
MarkdownRender,
)
from .execution.typing import IbisBackendLike, Table
from .vocabulary.concept import ConceptSet

if TYPE_CHECKING:
from .execution.typing import IbisBackendLike, Table
else:
IbisBackendLike = Any
Table = Any


def cohort_expression_from_json(json_str: str) -> CohortExpression:
"""Load a cohort expression from a JSON string.
Expand Down
Loading