File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,23 +27,29 @@ jobs:
2727
2828 steps :
2929 - uses : actions/checkout@v3
30+
31+ # use github python action instead of uv to take advantage of caching
3032 - name : Set up Python ${{ matrix.python-version }}
3133 uses : actions/setup-python@v4
3234 with :
3335 python-version : ${{ matrix.python }}
3436 cache : ' pip'
3537 cache-dependency-path : ' **/pyproject.toml'
38+
39+ - name : Install uv
40+ uses : astral-sh/setup-uv@v5
41+
3642 - name : Install package with dependencies
37- run : pip install -e ".[test]"
43+ run : uv sync --all-extras --dev
3844
3945 # for all versions but the one we use for code coverage, run normally
4046 - name : Run unit tests normally
41- run : pytest
47+ run : uv run pytest
4248 if : ${{ matrix.python != env.COV_PYTHON_VERSION }}
4349
4450 # run code coverage in one version only
4551 - name : Run unit tests with code coverage reporting
46- run : pytest --cov=undate
52+ run : uv run pytest --cov=undate
4753 if : ${{ matrix.python == env.COV_PYTHON_VERSION }}
4854 - name : Upload test coverage to Codecov
4955 uses : codecov/codecov-action@v3
You can’t perform that action at this time.
0 commit comments