File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,23 @@ jobs:
3333 uses : actions/setup-python@v5
3434 with :
3535 python-version : ${{ env.MAIN_PYTHON_VERSION }}
36- - name : Install library, with test extra
36+ - name : Install uv and create venv
3737 run : |
38- python -m pip install uv
39- uv pip install .[tests]
40- python -m uv pip install tests/launcher/pkg_with_entrypoint
38+ python -m pip install --upgrade pip
39+ pip install uv
40+ uv venv
41+ source .venv/bin/activate
4142
43+ - name : Install project dependencies
44+ run : |
45+ source .venv/bin/activate
46+ uv pip install -e .[tests]
47+ uv pip install tests/launcher/pkg_with_entrypoint
4248
4349 - name : Unit testing
4450 run : |
45- python -m uv pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
51+ source .venv/bin/activate
52+ uv run python -m uv pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
4653
4754 - name : Upload coverage reports to Codecov
4855 uses : codecov/codecov-action@v5
You can’t perform that action at this time.
0 commit comments