-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
53 lines (43 loc) · 1.34 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# justfile for common project commands
# see here for more information: https://github.com/casey/just
# find system default shell
hashbang := if os() == 'macos' {
'/usr/bin/env zsh'
} else {
'/usr/bin/env bash'
}
# cifs / samba command based on operating system
cifs_or_samba_mount_command := if os() == 'macos' {
'mount_smbfs //data.ucdenver.pvt/dept/SOM/SOMDean/Testing/DBMITest ~/mnt/isilon'
} else {
'sudo mount -t cifs //data.ucdenver.pvt/dept/SOM/SOMDean/Testing/DBMITest -o username='
}
# show a list of just commands for this project
default:
@just --list
# install the project for development purposes
@setup:
#!{{hashbang}}
uv pip install '.'
# mount a uca cifs / samba
@mount-isilon:
#!{{hashbang}}
if mount | grep "/mnt/isilon"; then
echo "The isilon fileshare is already mounted."
else
# create a mount destination
mkdir -p ~/mnt/isilon
# run the mount command
{{cifs_or_samba_mount_command}}
fi
# run isilon demo
@run-isilon-demo:
#!{{hashbang}}
# mount isilon
just mount-isilon
# prepare the data
uv run python src/demo/prepare_files.py
# run the test, storing the results in a notebook
uv run papermill src/demo/demo.ipynb src/demo/demo.ipynb
# share a friendly message
echo "Demo completed. The results are stored in src/demo/demo.ipynb."