Skip to content

Commit 152b57d

Browse files
fix: uv
1 parent 41bdf3a commit 152b57d

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/cicd.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,22 @@ jobs:
5757
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5858
cache: 'pip'
5959

60-
- name: Install dependencies
60+
- name: Install uv and create venv
6161
run: |
6262
python -m pip install --upgrade pip
6363
pip install uv
64+
uv venv
65+
source .venv/bin/activate
66+
67+
- name: Install project dependencies
68+
run: |
69+
source .venv/bin/activate
6470
uv pip install -e .[tests]
6571
uv pip install tests/launcher/pkg_with_entrypoint
6672
6773
- name: Run tests
6874
run: |
75+
source .venv/bin/activate
6976
uv pytest
7077
7178
# - uses: codecov/codecov-action@v5

.github/workflows/run_mapdl_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
python-version: ${{ env.MAIN_PYTHON_VERSION }}
3636
- name: Install library, with test extra
3737
run: |
38-
pip install uv
39-
uv python -m pip install .[tests]
40-
uv python -m pip install tests/launcher/pkg_with_entrypoint
38+
python -m pip install uv
39+
uv pip install .[tests]
40+
python -m uv pip install tests/launcher/pkg_with_entrypoint
4141
4242
4343
- name: Unit testing
4444
run: |
45-
uv python -m pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
45+
python -m uv pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
4646
4747
- name: Upload coverage reports to Codecov
4848
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)