@@ -32,32 +32,28 @@ jobs:
3232 steps :
3333 - name : Check out repo
3434 uses : actions/checkout@v4
35- - name : Install node.js 20
35+ - name : Install node
3636 uses : actions/setup-node@v4
3737 with :
3838 node-version : 20
3939 - name : Install json-schema-to-typescript
40- run : |
41- npm i -g json-schema-to-typescript
40+ run : npm i -g json-schema-to-typescript
4241 - name : Install uv
4342 uses : astral-sh/setup-uv@v3
4443 with :
4544 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
5045 - name : Run tests against 'pydantic@latest'
51- run : uv run pytest --cov=pydantic2ts
52- - name : (3.9 ubuntu) Run tests against 'pydantic==1.8.2'
46+ run : |
47+ uv python install ${{ matrix.python-version }}
48+ uv sync --all-extras --dev
49+ uv run pytest --cov=pydantic2ts
50+ - name : (ubuntu 3.9) Run tests against 'pydantic==1.8.2' and generate an LCOV file for Coveralls
5351 if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
5452 run : |
55- uv pip install 'pydantic==1.8.2'
53+ uv add 'pydantic==1.8.2'
5654 uv run pytest --cov=pydantic2ts --cov-append
57- - name : (3.9 ubuntu) Generate LCOV File
58- if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
59- run : uv run coverage lcov
60- - name : (3.9 ubuntu) Upload to Coveralls
55+ uv run coverage lcov
56+ - name : (ubuntu 3.9) Upload to Coveralls
6157 if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
6258 uses : coverallsapp/github-action@master
6359 with :
0 commit comments