Skip to content

Commit 8f12f6c

Browse files
committed
Checkpoint
1 parent 975cdce commit 8f12f6c

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
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

0 commit comments

Comments
 (0)