Skip to content

NPA-6896: Add Valid Status Reason Codes and Legal Basis Values to Spec #180

NPA-6896: Add Valid Status Reason Codes and Legal Basis Values to Spec

NPA-6896: Add Valid Status Reason Codes and Legal Basis Values to Spec #180

Workflow file for this run

name: Sandbox Check
on: pull_request
jobs:
test-sandbox-and-postman:
name: "Test Sandbox and Postman"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "poetry"
- name: Install dependencies
run: make install
- name: Install Sandobx dependencies
run: make install
working-directory: sandbox
- name: Check Sandbox Formatting
run: make format
- name: Run Sandbox Linting
run: make lint
- name: Run Sandbox Unit Tests
run: make test
working-directory: sandbox
- name: Test Postman Collection agaist Sandbox
working-directory: sandbox
run: |
# 1. Run Flask in the background (using 'poetry run python -m flask')
# We use FLASK_DEBUG=1 to see the 500 errors in the console
cp -r $GITHUB_WORKSPACE/specification/examples/responses/. $GITHUB_WORKSPACE/sandbox/api/examples/
set -m
FLASK_DEBUG=1 poetry run python -m flask --app api.app:app run -p 9000 &
FLASK_PID=$!
# 2. Use npx to wait for the server to actually be ready
npx wait-on http://127.0.0.1:9000/health --timeout 30000
# 3. Run your tests
echo "Running Newman tests..."
npx newman run ../postman/validated_relationship_service.sandbox.postman_collection.json --env-var baseUrl=http://127.0.0.1:9000/FHIR/R4
# 4. Cleanup: Kill the Flask process using the PID we saved
echo "Shutting down Flask..."
kill -TERM -$FLASK_PID