@@ -21,61 +21,64 @@ jobs:
2121 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
2222 pydantic-version : ["1.0", "2.0"]
2323
24+ env :
25+ UV_CACHE_DIR : /tmp/.uv-cache
2426 steps :
25- - uses : actions/checkout@v3
27+ - uses : actions/checkout@v4
2628 - name : Set up Python
2729 uses : actions/setup-python@v4
2830 with :
2931 python-version : ${{ matrix.python-version }}
3032 architecture : x64
3133 allow-prereleases : true
3234
33- - name : Install poetry
34- uses : abatilo/actions-poetry@v2.0.0
35+ - name : Set up uv
36+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
37+ - name : Restore uv cache
38+ uses : actions/cache@v4
3539 with :
36- poetry-version : 2.0.0
37-
38- - name : Set up cache
39- uses : actions/cache@v3
40- with :
41- path : ~/.cache/pypoetry/virtualenvs
42- key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
40+ path : /tmp/.uv-cache
41+ key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
4342 restore-keys : |
44- ${{ runner.os }}-poetry-
43+ uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
44+ uv-${{ runner.os }}
4545
4646 - name : Install dependencies
4747 run : |
4848 make install
49- pip install 'pydantic~=${{ matrix.pydantic-version }}'
49+ uv pip install 'pydantic~=${{ matrix.pydantic-version }}'
5050
5151 - name : Run Linters
52- run : poetry run make lint
52+ run : make lint
5353
5454 - name : Run tests
55- run : poetry run make test
55+ run : make test
5656
5757 - name : Store test result artifacts
5858 uses : actions/upload-artifact@v4
5959 with :
6060 path : coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }}.xml
6161
62- - name : Coveralls
63- env :
64- COVERALLS_FLAG_NAME : run-${{ inputs.working-directory }}
65- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66- COVERALLS_PARALLEL : true
67- run : |
68- pip install tomli coveralls
69- coveralls --service=github
62+ - uses : codecov/codecov-action@v4
63+ with :
64+ token : ${{ secrets.CODECOV_TOKEN }}
65+ name : python=${{ matrix.python-version }}-pydantic=${{matrix.pydantic-version}}
66+ files : coverage.xml
67+
68+ typos :
69+ name : Check for typos
70+ runs-on : ubuntu-latest
71+ steps :
72+ - name : Checkout Actions Repository
73+ uses : actions/checkout@v4
74+ - name : Spell Check Repo
75+ uses : crate-ci/typos@v1.30.0
7076
7177 finish :
7278 needs :
7379 - test
80+ - typos
7481 runs-on : ubuntu-latest
7582 steps :
76- - name : Coveralls Finished
77- env :
78- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79- run : |
80- pip install tomli coveralls
81- coveralls --service=github --finish
83+ - name : Join
84+ run : echo Done
0 commit comments