@@ -22,18 +22,41 @@ jobs:
2222 fail-fast : true
2323 max-parallel : 4
2424 matrix :
25- python-version : [' 3.8', ' 3.9', ' 3.10', ' 3.11', ' 3.12', ' 3.13', ' 3.14' ]
25+ python-version : [" 3.8", " 3.9", " 3.10", " 3.11", " 3.12", " 3.13", " 3.14" ]
2626 steps :
2727 - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2828 with :
2929 persist-credentials : false
30- - name : Setup Python ${{ matrix.python-version }}
31- id : setup-python
32- uses : actions/ setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
30+ - name : Install uv
31+ uses : astral-sh/ setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
32+ id : setup-uv
3333 with :
3434 python-version : ${{ matrix.python-version }}
35+ activate-environment : true
3536 - name : Install dependencies
3637 run : |
37- pip install -e .[dev]
38- - run : make lint
39- - run : black --check fhir/resources/
38+ uv run python --version
39+ uv pip install -e .[test]
40+ - run : uv run flake8 ./fhir/resources/
41+ - run : uv run black --check fhir/resources/
42+ # monthly cache updates
43+ - run : echo "cache_id=$(date --utc '+%m')" >> "$GITHUB_ENV"
44+ - uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
45+ with :
46+ key : fhir-resources-${{ env.cache_id }}
47+ path : .cache
48+ restore-keys : |
49+ fhir-resources-
50+ - name : Run main tests with Python ${{ matrix.python-version }}
51+ run : |
52+ which pytest
53+ uv run pytest tests
54+ - name : Run STU3 tests with Python ${{ matrix.python-version }}
55+ run : |
56+ uv run pytest fhir/resources/STU3/tests
57+ - name : Run R4B tests with Python ${{ matrix.python-version }}
58+ run : |
59+ uv run pytest -s --cov=fhir/resources/R4B/tests -s --tb=native -v --cov-report term-missing --cov-append fhir/resources/R4B/tests
60+ - name : Run R5 tests with Python ${{ matrix.python-version }}
61+ run : |
62+ uv run pytest -s --cov=fhir/resources/tests -s --tb=native -v --cov-report term-missing --cov-append fhir/resources/tests
0 commit comments