From 5eb01d4e64f3331cae854a3d275cb7da202b6371 Mon Sep 17 00:00:00 2001 From: crasm Date: Thu, 28 Dec 2023 04:41:59 -0500 Subject: [PATCH] Move check-requirements.sh into ./scripts/ --- .github/workflows/python-check-requirements.yml | 6 +++--- check-requirements.sh => scripts/check-requirements.sh | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) rename check-requirements.sh => scripts/check-requirements.sh (95%) diff --git a/.github/workflows/python-check-requirements.yml b/.github/workflows/python-check-requirements.yml index 6a27c618f..92e1108b3 100644 --- a/.github/workflows/python-check-requirements.yml +++ b/.github/workflows/python-check-requirements.yml @@ -3,13 +3,13 @@ name: Python check requirements.txt on: push: paths: - - 'check-requirements.sh' + - 'scripts/check-requirements.sh' - 'convert*.py' - 'requirements.txt' - 'requirements/*.txt' pull_request: paths: - - 'check-requirements.sh' + - 'scripts/check-requirements.sh' - 'convert*.py' - 'requirements.txt' - 'requirements/*.txt' @@ -26,4 +26,4 @@ jobs: with: python-version: "3.11" - name: Run check-requirements.sh script - run: bash check-requirements.sh nocleanup + run: bash scripts/check-requirements.sh nocleanup diff --git a/check-requirements.sh b/scripts/check-requirements.sh similarity index 95% rename from check-requirements.sh rename to scripts/check-requirements.sh index c6341cbbc..af7bab753 100755 --- a/check-requirements.sh +++ b/scripts/check-requirements.sh @@ -1,5 +1,6 @@ #!/bin/bash set -euo pipefail + # # check-requirements.sh checks all requirements files for each top-level # convert*.py script. @@ -8,8 +9,8 @@ set -euo pipefail # python script. As of 2023-12-22, this writes ~2.7GB of data. An adequately # sized tmpfs /tmp or ramdisk is recommended if running this frequently. # -# usage: ./check-requirements.sh [] -# ./check-requirements.sh nocleanup [] +# usage: check-requirements.sh [] +# check-requirements.sh nocleanup [] # # where: # - is a directory that can be used as the base for @@ -69,7 +70,7 @@ if (( do_cleanup )); then fi this=$(realpath -- "$0"); readonly this -cd "$(dirname "$this")" +cd "$(dirname "$this")/.." # PWD should stay in llama.cpp project directory shellcheck "$this"