Move check-requirements.sh into ./scripts/
This commit is contained in:
parent
b6bf2643a7
commit
5eb01d4e64
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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 [<working_dir>]
|
||||
# ./check-requirements.sh nocleanup [<working_dir>]
|
||||
# usage: check-requirements.sh [<working_dir>]
|
||||
# check-requirements.sh nocleanup [<working_dir>]
|
||||
#
|
||||
# where:
|
||||
# - <working_dir> 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"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue