We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edeb52d commit 109506fCopy full SHA for 109506f
.github/workflows/test.yml
@@ -14,7 +14,7 @@ jobs:
14
uses: actions/setup-python@v6
15
16
- name: Run tests
17
- run: python -m unittest discover --start-directory tests
+ run: scripts/test.sh
18
19
lint:
20
name: 'Lint'
scripts/test.sh
@@ -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