@@ -32,34 +32,31 @@ jobs:
32
32
steps :
33
33
- name : Check out repo
34
34
uses : actions/checkout@v4
35
- - name : Set up Node .js 20
35
+ - name : Install node .js 20
36
36
uses : actions/setup-node@v4
37
37
with :
38
38
node-version : 20
39
- - name : Set up Python ${{ matrix.python-version }}
40
- uses : actions/setup-python@v5
41
- with :
42
- python-version : ${{ matrix.python-version }}
43
39
- name : Install json-schema-to-typescript
44
40
run : |
45
41
npm i -g json-schema-to-typescript
46
- - name : Install python dependencies
47
- run : |
48
- python -m pip install -U pip wheel pytest pytest-cov coverage
49
- python -m pip install -U .
42
+ - name : Install uv
43
+ uses : astral-sh/setup-uv@v3
44
+ with :
45
+ version : " 0.5.2"
46
+ - name : Set up Python ${{ matrix.python-version }}
47
+ run : uv python install ${{ matrix.python-version }}
48
+ - name : Install the project
49
+ run : uv sync --all-extras --dev
50
50
- name : Run tests against 'pydantic@latest'
51
- run : |
52
- pytest --cov=pydantic2ts
51
+ run : uv run pytest --cov=pydantic2ts
53
52
- name : (3.9 ubuntu) Run tests against 'pydantic==1.8.2'
54
53
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
55
54
run : |
56
- python -m pip install 'pydantic==1.8.2'
57
- python -m pip install -U .
58
- pytest --cov=pydantic2ts --cov-append
55
+ uv pip install 'pydantic==1.8.2'
56
+ uv run pytest --cov=pydantic2ts --cov-append
59
57
- name : (3.9 ubuntu) Generate LCOV File
60
58
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
61
- run : |
62
- coverage lcov
59
+ run : uv run coverage lcov
63
60
- name : (3.9 ubuntu) Upload to Coveralls
64
61
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
65
62
uses : coverallsapp/github-action@master
0 commit comments