Change venv path

This commit is contained in:
Brett Logan 2022-02-22 10:24:08 -05:00
parent 4a938c367e
commit f71367133f
No known key found for this signature in database
GPG key ID: 52ED7D1F56850EE6
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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 }}