Merge pull request #330 from canvas-medical/csande/example-proxy-unit… #239
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: Unit tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
fhir-sequence: [STU3, R4B, R5] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install Python packages | |
run: | | |
poetry add "fhir.resources"@^7.0.0 --extras=xml | |
poetry install | |
- name: Run tests | |
env: | |
FHIR_SEQUENCE: ${{ matrix.fhir-sequence }} | |
run: poetry run pytest | |
run-tests-r4: | |
needs: run-tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
fhir-sequence: [R4] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install Python packages | |
run: | | |
poetry add "fhir.resources"@~6.4.0 --extras=xml | |
poetry install | |
- name: Run tests | |
env: | |
FHIR_SEQUENCE: ${{ matrix.fhir-sequence }} | |
run: poetry run pytest | |
run-tests-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
fhir-sequence: [R5] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install Python packages | |
run: | | |
poetry add "fhir.resources"@^7.0.0 --extras=xml | |
poetry install | |
- name: Run tests | |
env: | |
FHIR_SEQUENCE: ${{ matrix.fhir-sequence }} | |
run: poetry run pytest |