[pre-commit.ci] pre-commit autoupdate #27
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 .[test] | |
- name: Install SMART sandbox | |
run: | | |
git clone https://github.com/smart-on-fhir/smart-launcher-v2.git | |
cd smart-launcher-v2 | |
git switch -c aa0f3b1 # Fix the version we use for the sandbox | |
npm ci | |
npm run build | |
- name: Run tests | |
run: | | |
pytest tests/ | |
env: | |
SANDBOX_DIR: ${{ github.workspace }}/smart-launcher-v2 |