diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 79cc6b36..6484ee76 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -29,7 +29,9 @@ jobs: echo '${{ toJson(secrets) }}' > secrets.json - name: Install dependencies - run: pip install -r .github/workflows/innersourcing/requirements.txt + run: | + python3 -m venv .venv + .venv/bin/pip install -r .github/workflows/innersourcing/requirements.txt - name: Execute cleanup script run: | @@ -37,4 +39,4 @@ jobs: set -o pipefail export GITHUB_REF_NAME="${{ github.event_name == 'workflow_dispatch' && github.ref_name || github.event.pull_request.head.ref }}" echo "Exporting GITHUB_REF_NAME: $GITHUB_REF_NAME" - python3 .github/workflows/innersourcing/cleanup.py \ No newline at end of file + .venv/bin/python3 .github/workflows/innersourcing/cleanup.py \ No newline at end of file diff --git a/.github/workflows/outputs-publish.yml b/.github/workflows/outputs-publish.yml index 37d76a4b..20a18e33 100644 --- a/.github/workflows/outputs-publish.yml +++ b/.github/workflows/outputs-publish.yml @@ -31,8 +31,8 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r .github/workflows/innersourcing/requirements.txt + python3 -m venv .venv + .venv/bin/pip install -r .github/workflows/innersourcing/requirements.txt - name: Generate Output Trees env: @@ -40,4 +40,4 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} S3_BUCKET_NAME: ${{ vars.FACETS_MODULES_BUCKET_NAME }} DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }} - run: python .github/workflows/innersourcing/generate_output_trees.py + run: .venv/bin/python .github/workflows/innersourcing/generate_output_trees.py diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a8f70781..7b21f5e3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,15 +24,15 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r .github/workflows/innersourcing/requirements.txt + python3 -m venv .venv + .venv/bin/pip install -r .github/workflows/innersourcing/requirements.txt - name: Generate Module Zips env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} S3_BUCKET_NAME: ${{ vars.FACETS_MODULES_BUCKET_NAME }} - run: python .github/workflows/innersourcing/zip_modules.py + run: .venv/bin/python .github/workflows/innersourcing/zip_modules.py - name: Post Success to a Slack channel id: slack diff --git a/.github/workflows/validate-bootstrapper.yml b/.github/workflows/validate-bootstrapper.yml index cc6ffafc..5d523316 100644 --- a/.github/workflows/validate-bootstrapper.yml +++ b/.github/workflows/validate-bootstrapper.yml @@ -23,7 +23,9 @@ jobs: uses: actions/checkout@v2 - name: Install dependencies - run: pip install -r .github/workflows/innersourcing/requirements.txt + run: | + python3 -m venv .venv + .venv/bin/pip install -r .github/workflows/innersourcing/requirements.txt - name: Run validate-bootstrapper script id: run @@ -32,7 +34,7 @@ jobs: ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }} run: | set +e - python -u .github/workflows/innersourcing/validate_bootstrapper.py 2>&1 | tee script_output.txt + .venv/bin/python -u .github/workflows/innersourcing/validate_bootstrapper.py 2>&1 | tee script_output.txt exit_status=${PIPESTATUS[0]} output=$(cat script_output.txt)