Skip to content

Commit 2d8e18c

Browse files
committed
Run Julia command in uv to check Jupyter configuration
1 parent d7e58d8 commit 2d8e18c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/test-smokes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
export JUPYTER=$(find $(dirname $(uv run --frozen which jupyter))/ -type f -name "jupyter.exe" -o -name "jupyter")
184184
uv run --frozen julia --color=yes --project=. -e "import Pkg; Pkg.instantiate(); Pkg.build(\"IJulia\"); Pkg.precompile()"
185185
echo "Julia Jupyter:"
186-
julia --project=. -e "import IJulia;println(IJulia.JUPYTER);println(IJulia.find_jupyter_subcommand(\"notebook\"))"
186+
uv run julia --project=. -e "import IJulia;println(IJulia.JUPYTER);println(IJulia.find_jupyter_subcommand(\"notebook\"))"
187187
188188
- name: Setup timing file for timed test
189189
if: ${{ matrix.time-test == true }}

tests/configure-test-env.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ try {$null = gcm julia -ea stop; $julia=$true } catch {
3333
If ($julia) {
3434
# TODO: Check to do equivalent of virtualenv
3535
Write-Host "Setting up Julia environment"
36-
julia --color=yes --project=. -e 'import Pkg; Pkg.instantiate(); Pkg.build("IJulia"); Pkg.precompile()'
36+
uv run --frozen julia --color=yes --project=. -e "import Pkg; Pkg.instantiate(); Pkg.build(`"IJulia`"); Pkg.precompile()"
3737
}
3838

3939
# Check TinyTeX

tests/configure-test-env.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ then
3737
echo "No julia found in PATH - Check your PATH or install julia and add to PATH."
3838
else
3939
echo "Setting up Julia environment"
40-
julia --color=yes --project=. -e 'import Pkg; Pkg.instantiate(); Pkg.build("IJulia"); Pkg.precompile()'
40+
if [ -z $uv_exist ]
41+
then
42+
uv run --frozen julia --color=yes --project=. -e 'import Pkg; Pkg.instantiate(); Pkg.build("IJulia"); Pkg.precompile()'
43+
else
44+
julia --color=yes --project=. -e 'import Pkg; Pkg.instantiate(); Pkg.build("IJulia"); Pkg.precompile()'
45+
fi
4146
fi
4247

4348
# Update tinytex

0 commit comments

Comments
 (0)