@@ -37,26 +37,25 @@ jobs:
3737 uses : actions/setup-python@v5
3838 with :
3939 python-version : ${{ matrix.python }}
40+ cache : ' pip'
41+ cache-dependency-path : ' **/pyproject.toml'
4042
41- - name : Install uv
42- uses : astral-sh/setup-uv@v5
43- with :
44- enable-cache : true
45- cache-dependency-glob : " pyproject.toml"
46-
47- - name : Install package with dev and test dependencies
48- run : uv sync --extra test
43+ - name : Install package with dependencies
44+ run : pip install -e ".[test]"
4945
5046 # for all versions but the one we use for code coverage, run normally
51- - name : Run unit tests normally
52- run : uv run pytest
47+ - name : Run unit tests without code coverage
48+ run : pytest
5349 if : ${{ matrix.python != env.COV_PYTHON_VERSION }}
5450
5551 # run code coverage in one version only
5652 - name : Run unit tests with code coverage reporting
57- run : uv run pytest --cov=undate
53+ run : pytest --cov=.
5854 if : ${{ matrix.python == env.COV_PYTHON_VERSION }}
59- - name : Upload test coverage to Codecov
60- uses : codecov/codecov-action@v3
55+
56+ - name : Upload coverage to Codecov
57+ uses : codecov/codecov-action@v4
58+ env :
59+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
6160 if : ${{ matrix.python == env.COV_PYTHON_VERSION }}
6261
0 commit comments