forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into migrate-ci-meson
- Loading branch information
Showing
230 changed files
with
3,119 additions
and
2,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ permissions: | |
|
||
jobs: | ||
test: | ||
name: Conda (${{ matrix.os }}, Python ${{ matrix.python }}, ${{ matrix.tests }}) | ||
name: Conda (${{ matrix.os }}, Python ${{ matrix.python }}, ${{ matrix.tests }})${{ matrix.editable && ', editable' || '' }}) | ||
runs-on: ${{ matrix.os }}-latest | ||
|
||
strategy: | ||
|
@@ -28,10 +28,16 @@ jobs: | |
os: ['ubuntu'] | ||
python: ['3.11', '3.12'] | ||
tests: ['all'] | ||
editable: | ||
${{ fromJson(github.event_name == 'pull_request' && '[false]' || '[false, true]') }} | ||
include: | ||
- os: 'ubuntu' | ||
python: '3.12' | ||
tests: 'new' | ||
# one additional editable run in pull_request, this has no effect if not pull_request | ||
- os: ubuntu | ||
python: 3.12 | ||
editable: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -89,7 +95,7 @@ jobs: | |
export CC="ccache $CC" | ||
export CXX="ccache $CXX" | ||
# Use --no-deps and pip check below to verify that all necessary dependencies are installed via conda | ||
pip install --no-build-isolation --no-deps --config-settings=builddir=builddir . -v | ||
pip install --no-build-isolation --no-deps --config-settings=builddir=builddir ${{ matrix.editable && '--editable' || '' }} . -v | ||
- name: Check update-meson | ||
# this step must be after build, because meson.build creates a number of __init__.py files | ||
|
@@ -113,7 +119,9 @@ jobs: | |
shell: bash -l {0} | ||
run: | | ||
# We don't install sage_setup, so don't try to test it | ||
rm -R ./src/sage_setup/ | ||
# If editable then deleting the directory will cause sage to detect rebuild, which will cause ninja to fail | ||
# so we don't delete the directory in this case | ||
${{ matrix.editable && 'true' || 'rm -R ./src/sage_setup/' }} | ||
./sage -t --${{ matrix.tests }} -p4 --format github | ||
- name: Check that all modules can be imported | ||
|
@@ -130,5 +138,5 @@ jobs: | |
uses: actions/[email protected] | ||
if: failure() | ||
with: | ||
name: ${{ runner.os }}-meson-${{ matrix.python }}-log | ||
name: ${{ runner.os }}-meson-${{ matrix.python }}${{ matrix.editable && '-editable' || '' }}-log | ||
path: builddir/meson-logs/ |
Oops, something went wrong.