mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 20:52:12 -05:00
Change venv path
This commit is contained in:
parent
4a938c367e
commit
f71367133f
2 changed files with 6 additions and 4 deletions
9
.github/scripts/update-python.sh
vendored
9
.github/scripts/update-python.sh
vendored
|
@ -11,7 +11,8 @@ set -euo pipefail
|
||||||
############################
|
############################
|
||||||
# Create staging directory #
|
# Create staging directory #
|
||||||
############################
|
############################
|
||||||
mkdir -p /venvs
|
# shellcheck disable=SC2154
|
||||||
|
mkdir -p "${working_directory}/venvs"
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Install basic libs to run installers #
|
# Install basic libs to run installers #
|
||||||
|
@ -26,9 +27,9 @@ for DEP_FILE in *.txt; do
|
||||||
# split the package name from its version
|
# split the package name from its version
|
||||||
PACKAGE_NAME=${DEP_FILE%.txt}
|
PACKAGE_NAME=${DEP_FILE%.txt}
|
||||||
echo "-------------------------------------------"
|
echo "-------------------------------------------"
|
||||||
mkdir -p "/venvs/${PACKAGE_NAME}"
|
mkdir -p "${working_directory}/venvs/${PACKAGE_NAME}"
|
||||||
echo "Generating virtualenv for: [${PACKAGE_NAME}]"
|
echo "Generating virtualenv for: [${PACKAGE_NAME}]"
|
||||||
pushd "/venvs/${PACKAGE_NAME}"
|
pushd "${working_directory}/venvs/${PACKAGE_NAME}"
|
||||||
# Enable virtualenv
|
# Enable virtualenv
|
||||||
virtualenv .
|
virtualenv .
|
||||||
# Activate virtualenv
|
# Activate virtualenv
|
||||||
|
@ -48,7 +49,7 @@ for DEP_FILE in *.txt; do
|
||||||
# Remove old lockfile
|
# Remove old lockfile
|
||||||
rm -rf "$DEP_FILE"
|
rm -rf "$DEP_FILE"
|
||||||
# Create new lockfile
|
# Create new lockfile
|
||||||
mv "/venvs/${PACKAGE_NAME}/requirements.txt" "${DEP_FILE}"
|
mv "${working_directory}/venvs/${PACKAGE_NAME}/requirements.txt" "${DEP_FILE}"
|
||||||
done
|
done
|
||||||
|
|
||||||
git status
|
git status
|
||||||
|
|
1
.github/workflows/deps-python.yml
vendored
1
.github/workflows/deps-python.yml
vendored
|
@ -13,3 +13,4 @@ jobs:
|
||||||
- run: ./.github/scripts/update-python.sh
|
- run: ./.github/scripts/update-python.sh
|
||||||
env:
|
env:
|
||||||
id: ${{ github.run_id }}
|
id: ${{ github.run_id }}
|
||||||
|
working_directory: ${{ github.workspace }}
|
||||||
|
|
Loading…
Reference in a new issue