File tree Expand file tree Collapse file tree 1 file changed +6
-26
lines changed Expand file tree Collapse file tree 1 file changed +6
-26
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 test :
13+ name : python
1314 runs-on : ubuntu-latest
1415
1516 steps :
@@ -19,37 +20,16 @@ jobs:
1920 - name : Set up Python
2021 uses : actions/setup-python@v4
2122 with :
22- python-version : ' 3.11 '
23+ python-version : ' 3.12 '
2324
24- - name : Install Poetry
25- uses : snok/install-poetry@v1
26- with :
27- version : 1.5.0
28- virtualenvs-create : true
29- virtualenvs-in-project : true
30-
31- - name : Load cached venv
32- id : cached-poetry-dependencies
33- uses : actions/cache@v3
34- with :
35- path : .venv
36- key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
25+ - name : Install uv
26+ uses : astral-sh/setup-uv@v5
3727
3828 - name : Install dependencies
39- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
40- run : poetry install --no-interaction
29+ run : uv sync --all-extras --dev
4130
4231 - name : Run tests
4332 run : |
44- source .venv/bin/activate
45- python tests/test_validation.py schema
46- python tests/test_serialization.py
47- python tests/test_html_to_jsondoc.py
48-
49- # - name: Upload test results
50- # uses: actions/upload-artifact@v2
51- # with:
52- # name: test-results
53- # path: test-results # Adjust this path if your tests output results to a different directory
33+ uv run pytest
5434
5535
You can’t perform that action at this time.
0 commit comments