Skip to content

Commit

Permalink
CI: limit parallelism Meson
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jan 29, 2024
1 parent cc48054 commit 8c954fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ pixi-test:
- pixi info
# - rm -rf ../transonic
# - hg clone https://foss.heptapod.net/fluiddyn/transonic ../transonic
- pixi run install-editable
- pixi run install-dependencies
- pixi run pip install -e . -v --no-build-isolation --no-deps -C compile-args=-j4
- pixi run pytest -v lib
- pixi run fluidsim-test -v
# currently broken because of fluidfft conda issues
Expand Down
10 changes: 6 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def test_with_fft_and_pythran(session):
_install_fluidfft(session)
command = "pdm sync --clean -G dev -G test -G fft -G mpi --no-self"
session.run_always(*command.split(), external=True)
session.install(".", "-v", "--no-deps", "-C", "setup-args=-Dnative=true")

command = ". -v --no-deps -C setup-args=-Dnative=true"
if "GITLAB_CI" in os.environ:
command += " -C compile-args=-j4"
session.install(*command.split())

_test(session)

Expand All @@ -63,9 +67,7 @@ def doc(session):
_install_fluidfft(session)
command = "pdm sync -G doc -G fft -G test --no-self"
session.run_always(*command.split(), external=True)
session.install(
".", "--config-settings=setup-args=-Dtransonic-backend=python", "--no-deps"
)
session.install(".", "-C", "setup-args=-Dtransonic-backend=python", "--no-deps")

session.chdir("doc")
session.run("make", "cleanall", external=True)
Expand Down

0 comments on commit 8c954fc

Please sign in to comment.