Skip to content

Commit

Permalink
Use cache by default for python requirements (#17180)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Sep 11, 2023
1 parent 37f9f49 commit 955b682
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -24,10 +24,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9.16'

- name: Install Python requirements
run: |
pip3 install -r requirements.txt
cache: 'pip'
- run: pip3 install -r requirements.txt

- name: Setup env variables
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/cws-btfhub-sync.yml
Expand Up @@ -30,16 +30,13 @@ jobs:
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r requirements.txt

- name: Install go
uses: actions/setup-go@v4
with:
go-version-file: '.go-version'

- name: Install python requirements
run: |
pip install -r requirements.txt
- name: Install go deps
run: |
inv -e deps
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/go_mod_tidy.yml
Expand Up @@ -33,6 +33,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9.12'
cache: 'pip'
- name: Install python requirements.txt
run: python3 -m pip install -r requirements.txt
- name: Go mod tidy
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/windows-lint-go.yml
Expand Up @@ -24,6 +24,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9.5'
cache: 'pip'
- run: |
python -m pip install -r requirements.txt
If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
- name: Install go
uses: actions/setup-go@v3
Expand All @@ -34,8 +38,6 @@ jobs:
run: |
$ErrorActionPreference = 'Stop';
# install dependencies
python -m pip install -r requirements.txt
If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
inv -e install-tools
If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
inv -e deps
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/windows-unittests.yml
Expand Up @@ -24,6 +24,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.9.5'
cache: 'pip'
- run: |
python -m pip install -r requirements.txt
If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
- name: Install go
uses: actions/setup-go@v3
Expand All @@ -34,8 +38,6 @@ jobs:
run: |
$ErrorActionPreference = 'Stop';
# install dependencies
python -m pip install -r requirements.txt
If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
inv -e install-tools
If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
inv -e deps
Expand Down

0 comments on commit 955b682

Please sign in to comment.