Skip to main content

ts: handle yt-dlp_alexwlchan repo

ID
5eae6ff
date
2026-02-27 22:56:55+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
42ef4d6
message
ts: handle yt-dlp_alexwlchan repo
changed files
1 file, 12 additions, 9 deletions

Changed files

ts (2138) → ts (2407)

diff --git a/ts b/ts
index daf4b66..1513a0a 100755
--- a/ts
+++ b/ts
@@ -34,6 +34,10 @@ function run_python_tests() {
     then
         print_info '-> mypy *.py src tests'
         mypy *.py src tests
+    elif [[ "$REPO_NAME" = "yt-dlp_alexwlchan" ]]
+    then
+        print_info '-> mypy *.py'
+        mypy *.py
     else
         print_info '-> mypy src tests'
 
@@ -43,15 +47,6 @@ function run_python_tests() {
         else
             mypy src tests
         fi
-    else
-        print_info '-> mypy *.py'
-
-        if mypy *.py >/dev/null
-        then
-            mypy *.py --no-color-output
-        else
-            mypy *.py
-        fi
     fi
 
     echo ""
@@ -65,6 +60,14 @@ function run_python_tests() {
     then
         print_info "-> pytest tests --cov=src --cov=tests"
         pytest tests --cov=src --cov=tests --quiet
+    elif [[ "$REPO_NAME" = "alexwlchan.net" ]]
+    then
+        print_info "-> bash scripts/run_mosaic_tests.sh"
+        bash scripts/run_mosaic_tests.sh
+    elif [[ "$REPO_NAME" = "yt-dlp_alexwlchan" ]]
+    then
+        print_info "-> python3 -m pytest test_yt-dlp_alexwlchan.py"
+        python3 -m pytest test_yt-dlp_alexwlchan.py
     else
         print_info "-> coverage run -m pytest tests"
         coverage run -m pytest tests --quiet