Skip to content

Commit af25042

Browse files
committed
fixed venv sourcing
Signed-off-by: Sombrio <[email protected]>
1 parent 60540dc commit af25042

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.github/workflows/github-actions-lint-tcl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717

1818
- name: Install Dependencies
1919
run: |
20-
python3 -m venv ./venv
21-
source ./venv/bin/activate
22-
pip install tclint==0.4.2
20+
python3 -m venv venv
21+
venv/bin/pip install tclint==0.4.2
2322
2423
- name: Lint
2524
run: |
25+
source venv/bin/activate
2626
tclfmt --version
2727
tclfmt --in-place .
2828
git diff --exit-code

.github/workflows/github-actions-manual-update-rules.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
python-version: "3.10"
2323
- name: Install Python Packages
2424
run: |
25-
python3 -m venv ./venv
26-
source ./venv/bin/activate
27-
pip install firebase-admin
25+
python3 -m venv venv
26+
venv/bin/pip install firebase-admin
2827
- name: Execute Python Script Update
2928
env:
3029
CREDS_FILE: ${{ secrets.CREDS_FILE }}
3130
API_BASE_URL: ${{ secrets.API_BASE_URL }}
3231
run: |
32+
source venv/bin/activate
3333
if [[ "${{ github.event.inputs.type }}" == "overwrite" ]]; then
3434
python flow/util/updateRules.py --keyFile "${CREDS_FILE}" --apiURL ${API_BASE_URL} --commitSHA $(git rev-parse HEAD) --overwrite
3535
else

.github/workflows/github-actions-update-rules.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
python-version: "3.10"
2525
- name: Install Python Packages
2626
run: |
27-
python3 -m venv ./venv
28-
source ./venv/bin/activate
29-
pip install firebase-admin
27+
python3 -m venv venv
28+
venv/bin/pip install firebase-admin
3029
- name: Execute Python Script Update
3130
env:
3231
CREDS_FILE: ${{ secrets.CREDS_FILE }}
3332
API_BASE_URL: ${{ secrets.API_BASE_URL }}
3433
run: |
34+
source ./venv/bin/activate
3535
echo ${{ github.event_name }}
3636
echo ${{ github.event.client_payload.type }}
3737
if [[ "${{ github.event_name }}" == "repository_dispatch" && "${{ github.event.client_payload.type }}" == "overwrite" ]]; then

.github/workflows/github-actions-yaml-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ jobs:
2323
- name: Check if FlowVariables.md is up to date
2424
run: |
2525
git diff --exit-code docs/user/FlowVariables.md
26+
- name: Install dependencies
27+
run: |
28+
python3 -m venv venv
29+
venv/bin/pip install --quiet yamlfix==1.17.0
2630
- name: Run yamlfix check
2731
run: |
28-
python3 -m venv ./venv
29-
source ./venv/bin/activate
30-
pip install --quiet yamlfix==1.17.0
32+
source venv/bin/activate
3133
yamlfix --version
3234
set -x
3335
yamlfix -c yamlfix.toml flow/scripts/variables.yaml

0 commit comments

Comments
 (0)