Skip to content

Commit

Permalink
Prevent caching of pip install for tests (#2250)
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoisor authored Nov 5, 2024
1 parent 85d4353 commit 5703a16
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/accounts/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ steps:
python3 -m venv $HOME/venv-python-tests
. $HOME/venv-python-tests/bin/activate
pip install --upgrade pip
pip install pylint
pip install pylint --no-cache-dir
skaffold test --build-artifacts=/workspace/artifacts.json --module=$SERVICE --assume-yes
env:
- 'TEAM=$_TEAM'
Expand Down
5 changes: 3 additions & 2 deletions src/accounts/contacts/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ test:
context: .
custom:
- command: |
pip install pylint --quiet
pip install -r requirements.txt --quiet
pip install --upgrade pip
pip install pylint --quiet --no-cache-dir
pip install -r requirements.txt --quiet --no-cache-dir
pylint --rcfile=../../../.pylintrc *.py
timeoutSeconds: 1200
dependencies:
Expand Down
5 changes: 3 additions & 2 deletions src/accounts/userservice/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ test:
context: .
custom:
- command: |
pip install pylint --quiet
pip install -r requirements.txt --quiet
pip install --upgrade pip
pip install pylint --quiet --no-cache-dir
pip install -r requirements.txt --quiet --no-cache-dir
pylint --rcfile=../../../.pylintrc *.py
timeoutSeconds: 1200
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ steps:
python3 -m venv $HOME/venv-python-tests
. $HOME/venv-python-tests/bin/activate
pip install --upgrade pip
pip install pylint
pip install pylint --no-cache-dir
cd /workspace/src/$TEAM
skaffold test --build-artifacts=/workspace/artifacts.json --assume-yes
env:
Expand Down
5 changes: 3 additions & 2 deletions src/frontend/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ test:
context: .
custom:
- command: |
pip install pylint --quiet
pip install -r requirements.txt --quiet
pip install --upgrade pip
pip install pylint --quiet --no-cache-dir
pip install -r requirements.txt --quiet --no-cache-dir
pylint --rcfile=../../.pylintrc *.py
timeoutSeconds: 180
dependencies:
Expand Down

0 comments on commit 5703a16

Please sign in to comment.