@@ -32,32 +32,28 @@ jobs:
32
32
steps :
33
33
- name : Check out repo
34
34
uses : actions/checkout@v4
35
- - name : Install node.js 20
35
+ - name : Install node
36
36
uses : actions/setup-node@v4
37
37
with :
38
38
node-version : 20
39
39
- 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
42
41
- name : Install uv
43
42
uses : astral-sh/setup-uv@v3
44
43
with :
45
44
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
45
- 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
53
51
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
54
52
run : |
55
- uv pip install 'pydantic==1.8.2'
53
+ uv add 'pydantic==1.8.2'
56
54
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
61
57
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
62
58
uses : coverallsapp/github-action@master
63
59
with :
0 commit comments