@@ -32,34 +32,31 @@ jobs:
3232 steps :
3333 - name : Check out repo
3434 uses : actions/checkout@v4
35- - name : Set up Node .js 20
35+ - name : Install node .js 20
3636 uses : actions/setup-node@v4
3737 with :
3838 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 }}
4339 - name : Install json-schema-to-typescript
4440 run : |
4541 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
5050 - name : Run tests against 'pydantic@latest'
51- run : |
52- pytest --cov=pydantic2ts
51+ run : uv run pytest --cov=pydantic2ts
5352 - name : (3.9 ubuntu) Run tests against 'pydantic==1.8.2'
5453 if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
5554 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
5957 - name : (3.9 ubuntu) Generate LCOV File
6058 if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
61- run : |
62- coverage lcov
59+ run : uv run coverage lcov
6360 - name : (3.9 ubuntu) Upload to Coveralls
6461 if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
6562 uses : coverallsapp/github-action@master
0 commit comments