Skip to content

Commit b1ae738

Browse files
committed
Test pip editable install with meson
1 parent 015d525 commit b1ae738

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci-meson.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ concurrency:
1616

1717
jobs:
1818
test:
19-
name: Conda (${{ matrix.os }}, Python ${{ matrix.python }})
19+
name: Conda (${{ matrix.os }}, Python ${{ matrix.python }}${{ matrix.editable && ', editable' || '' }})
2020
runs-on: ${{ matrix.os }}-latest
2121

2222
strategy:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu]
2626
python: ['3.11', '3.12']
27+
editable: [false, true]
2728

2829
steps:
2930
- uses: actions/checkout@v4
@@ -70,7 +71,7 @@ jobs:
7071
export CC="ccache $CC"
7172
export CXX="ccache $CXX"
7273
# Use --no-deps and pip check below to verify that all necessary dependencies are installed via conda
73-
pip install --no-build-isolation --no-deps --config-settings=builddir=builddir . -v
74+
pip install --no-build-isolation --no-deps --config-settings=builddir=builddir ${{ matrix.editable && '--editable' || '' }} . -v
7475
7576
- name: Verify dependencies
7677
shell: bash -l {0}
@@ -80,7 +81,9 @@ jobs:
8081
shell: bash -l {0}
8182
run: |
8283
# We don't install sage_setup, so don't try to test it
83-
rm -R ./src/sage_setup/
84+
# If editable then deleting the directory will cause sage to detect rebuild, which will cause ninja to fail
85+
# so we don't delete the directory in this case
86+
${{ matrix.editable && 'true' || 'rm -R ./src/sage_setup/' }}
8487
./sage -t --all -p4
8588
8689
- name: Upload log

0 commit comments

Comments
 (0)