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:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'check-requirements.sh'
|
- 'scripts/check-requirements.sh'
|
||||||
- 'convert*.py'
|
- 'convert*.py'
|
||||||
- 'requirements.txt'
|
- 'requirements.txt'
|
||||||
- 'requirements/*.txt'
|
- 'requirements/*.txt'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'check-requirements.sh'
|
- 'scripts/check-requirements.sh'
|
||||||
- 'convert*.py'
|
- 'convert*.py'
|
||||||
- 'requirements.txt'
|
- 'requirements.txt'
|
||||||
- 'requirements/*.txt'
|
- 'requirements/*.txt'
|
||||||
|
@ -26,4 +26,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Run check-requirements.sh script
|
- 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
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
#
|
#
|
||||||
# check-requirements.sh checks all requirements files for each top-level
|
# check-requirements.sh checks all requirements files for each top-level
|
||||||
# convert*.py script.
|
# 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
|
# 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.
|
# sized tmpfs /tmp or ramdisk is recommended if running this frequently.
|
||||||
#
|
#
|
||||||
# usage: ./check-requirements.sh [<working_dir>]
|
# usage: check-requirements.sh [<working_dir>]
|
||||||
# ./check-requirements.sh nocleanup [<working_dir>]
|
# check-requirements.sh nocleanup [<working_dir>]
|
||||||
#
|
#
|
||||||
# where:
|
# where:
|
||||||
# - <working_dir> is a directory that can be used as the base for
|
# - <working_dir> is a directory that can be used as the base for
|
||||||
|
@ -69,7 +70,7 @@ if (( do_cleanup )); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
this=$(realpath -- "$0"); readonly this
|
this=$(realpath -- "$0"); readonly this
|
||||||
cd "$(dirname "$this")"
|
cd "$(dirname "$this")/.." # PWD should stay in llama.cpp project directory
|
||||||
|
|
||||||
shellcheck "$this"
|
shellcheck "$this"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue