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
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,36 @@ jobs:

- name: Test
run: pytest -q

package:
name: Install & import (Python 3.12)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip

# Builds the package (including the Cython extensions declared in
# setup.py) the way a consumer's `pip install` does.
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install .

# Run outside the checkout so modules resolve from site-packages, not
# the repository root. middleware.auth and middleware.policy are left
# out: they import the not-yet-existing omnibioai_security_sdk package
# (see the package layout note in README.md).
- name: Import installed modules
working-directory: ${{ runner.temp }}
run: |
python - <<'PY'
import importlib
for name in ("auth.service", "iam.client", "iam.cache", "policy.client",
"core.config", "core.context", "audit.client", "middleware.s2s"):
module = importlib.import_module(name)
print(f"ok {name}: {module.__file__}")
PY
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[build-system]
# setup.py imports Cython to compile selected modules, so it must be
# available in pip's isolated build environment.
requires = ["setuptools>=68", "wheel", "Cython>=3"]
build-backend = "setuptools.build_meta"

[project]
name = "omnibioai-security-sdk"
version = "0.1.0"
Expand Down
Loading