Skip to content

Commit c7ca02b

Browse files
committed
Install meshpy from wheel in testing
1 parent d74e07c commit c7ca02b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/actions/build_wheel/action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ runs:
1313
run: |
1414
cd ${GITHUB_WORKSPACE}
1515
${{ inputs.source-command }}
16-
pip -m build
16+
pip install build
17+
python -m build
1718
# Check if we got exactly one wheel file
1819
shopt -s nullglob
1920
files=(dist/*.whl)

.github/workflows/testing.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ jobs:
3030
uses: actions/setup-python@v5
3131
with:
3232
python-version: ${{ matrix.python-version }}
33+
- name: Build wheel
34+
uses: ./.github/actions/build_wheel
35+
if: matrix.python-version == '3.12'
3336
- name: Run the test suite
3437
uses: ./.github/actions/run_tests
3538
with:
3639
# Test coverage and editable install with Python 3.10, otherwise we use a
3740
# non-editable installation and turn of coverage, because the coverage
3841
# only works in editable mode.
3942
install-command: >-
40-
${{ matrix.python-version == '3.10' && '-e .[dev]' || '.[dev]'}}
43+
${{ matrix.python-version == '3.10' && '-e .[dev]' || '"$(ls dist/*.whl | head -n 1)[dev]"'}}
4144
# The single space in the empty string is required, otherwise GitHub
4245
# evaluates the if clause wrong.
4346
additional-pytest-flags: >-

0 commit comments

Comments
 (0)