forked from stanford-cs336/assignment1-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_submission.sh
More file actions
36 lines (32 loc) · 844 Bytes
/
make_submission.sh
File metadata and controls
36 lines (32 loc) · 844 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
uv run pytest -v ./tests --junitxml=test_results.xml || true
echo "Done running tests"
# Set the name of the output tar.gz file
output_file="cs336-spring2025-assignment-1-submission.zip"
rm "$output_file" || true
# Compress all files in the current directory into a single zip file
zip -r "$output_file" . \
-x '*egg-info*' \
-x '*mypy_cache*' \
-x '*pytest_cache*' \
-x '*build*' \
-x '*ipynb_checkpoints*' \
-x '*__pycache__*' \
-x '*.pkl' \
-x '*.pickle' \
-x '*.txt' \
-x '*.log' \
-x '*.json' \
-x '*.out' \
-x '*.err' \
-x '.git*' \
-x '.venv/*' \
-x '.*' \
-x 'tests/fixtures' \
-x 'tests/_snapshots' \
-x '*.pt' \
-x '*.pth' \
-x '*.npy' \
-x '*.npz'
echo "All files have been compressed into $output_file"