Skip to content

Commit b4a1202

Browse files
committed
run with uv
1 parent f47dd55 commit b4a1202

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

.github/workflows/test-linux.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
28-
28+
2929
- name: Set up Fortran
3030
uses: fortran-lang/setup-fortran@v1
3131
with:
@@ -38,24 +38,24 @@ jobs:
3838
sudo apt-get install -y libopenblas-dev
3939
gfortran --version
4040
gcc --version
41-
42-
- name: Install PyPI-build dependencies
41+
42+
- name: Install uv
4343
run: |
44-
python -m pip install --upgrade pip
45-
pip install -r requirements-build.txt
46-
44+
pip install uv
45+
uv --version
46+
4747
- name: Build package
4848
run: |
49-
pip install -ve . --no-build-isolation
49+
uv pip install -ve . --no-build-isolation
5050
5151
- name: Run tests and collect coverage
5252
run: |
53-
pytest --cov -v -s --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
54-
coverage report
53+
uv run pytest --cov -v -s --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
54+
uv run coverage report
5555
5656
- name: Run example
5757
run: |
58-
python ./tests/example5.py
58+
uv run ./tests/example5.py
5959
6060
- name: Upload coverage to Codecov
6161
if: ${{ matrix.python-version == '3.10' }}

requirements-build.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)