Sandbox testing in CI #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JupyterHealth SMART on FHIR test suite | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.12] # extend if needed | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[testing] | |
- name: Build SMART sandbox | |
run: | | |
git clone https://github.com/smart-on-fhir/smart-launcher-v2.git | |
cd smart-launcher-v2 | |
npm install | |
env: | |
NODE_ENV: production | |
PORT: 5555 | |
- name: Run tests | |
run: | | |
pytest tests/ | |
env: | |
SANDBOX_DIR: ${{ github.workspace }}/smart-launcher-v2 | |