Skip to content

ci: add Python smoke tests and CI workflow (#5) #2

ci: add Python smoke tests and CI workflow (#5)

ci: add Python smoke tests and CI workflow (#5) #2

Workflow file for this run

name: Test
# Runs the test suite for the self-hosted Python resolver.
#
# Currently covers smoke tests only — verifying imports, the canonical
# 10-type list, and basic resolve() invariants. Fuller coverage (parser,
# resolver semantics, integration with a real registry) will land as the
# conformance suite work in SecID-Client-SDK matures and gets ported.
#
# TypeScript and Go implementations are README-stubs today; their CI jobs
# will be added when those implementations land.
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
python:
name: Python
runs-on: ubuntu-latest
defaults:
run:
working-directory: python
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
- name: Run smoke tests
run: pytest test_smoke.py -v