Skip to content

Commit c0c4eb8

Browse files
fix: uv in PyMAPDL tests
1 parent d13d8e0 commit c0c4eb8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/run_mapdl_tests.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)