Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ jobs:
with:
python-version: "3.9"

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build scikit-build-core setuptools-scm
run: uv pip install --system build scikit-build-core setuptools-scm

- name: Build CFD library (Unix)
if: runner.os != 'Windows'
Expand Down Expand Up @@ -106,6 +110,12 @@ jobs:
with:
python-version: "${{ matrix.python }}"

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: ""

- uses: actions/download-artifact@v4
with:
name: wheel-${{ matrix.os }}
Expand All @@ -114,16 +124,14 @@ jobs:
- name: Install wheel (Unix)
if: runner.os != 'Windows'
run: |
python -m pip install --upgrade pip
pip install dist/*.whl
pip install pytest numpy
uv pip install --system dist/*.whl
uv pip install --system pytest numpy

- name: Install wheel (Windows)
if: runner.os == 'Windows'
run: |
python -m pip install --upgrade pip
pip install (Get-ChildItem dist/*.whl).FullName
pip install pytest numpy
uv pip install --system (Get-ChildItem dist/*.whl).FullName
uv pip install --system pytest numpy

- name: Test import (Unix)
if: runner.os != 'Windows'
Expand Down
Loading
Loading