diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..40b6e28 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci +on: + push: + branches: [main] + pull_request: +permissions: + contents: read +jobs: + harness: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: List harness contents + shell: bash + run: | + echo "consumer-conformance:"; ls -la consumer-conformance 2>/dev/null || true + echo "issuer-conformance:"; ls -la issuer-conformance 2>/dev/null || true + - name: Run harness if a Python package is configured + shell: bash + run: | + if [ -f pyproject.toml ] || [ -f setup.py ]; then + python -m pip install --upgrade pip + pip install -e ".[dev]" || pip install -e . || true + pytest -q || echo "no tests yet" + elif [ -f requirements.txt ]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + pytest -q || echo "no tests yet" + else + echo "Conformance harness is documentation-only at this stage; nothing to execute." + fi