Skip to content

Commit 109506f

Browse files
committed
Add test script
1 parent edeb52d commit 109506f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/setup-python@v6
1515

1616
- name: Run tests
17-
run: python -m unittest discover --start-directory tests
17+
run: scripts/test.sh
1818

1919
lint:
2020
name: 'Lint'

scripts/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
SCRIPT_DIR="$(cd "$(dirname "$(realpath "$0")")" && pwd -P)"
4+
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
5+
TEST_DIR='tests'
6+
7+
# Change directory to project root
8+
cd "$PROJECT_ROOT" || exit 1
9+
10+
python -m unittest discover --start-directory "$TEST_DIR"

0 commit comments

Comments
 (0)