Skip to content

Commit

Permalink
ci: use python 3.7 for pubsublite samples testing (googleapis#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea authored Mar 14, 2022
1 parent 3ab2fc1 commit 846b73e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .kokoro/presubmit-against-pubsublite-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ for file in python-pubsublite/samples/**/requirements.txt; do
echo "- testing $file"
echo "------------------------------------------------------------"

# Use pytest to execute tests for py-3.6
python3.6 -m venv py-3.6
source py-3.6/bin/activate
# Use pytest to execute tests for py-3.7
python3.7 -m venv py-3.7
source py-3.7/bin/activate
# Install python-pubsublite samples tests requirements.
python -m pip install --upgrade pip
python -m pip install -r requirements.txt -q
Expand All @@ -87,8 +87,8 @@ for file in python-pubsublite/samples/**/requirements.txt; do
python -m pytest quickstart_test.py
EXIT=$?

deactivate py-3.6
rm -rf py-3.6/
deactivate py-3.7
rm -rf py-3.7/

if [[ $EXIT -ne 0 ]]; then
RTN=1
Expand Down

0 comments on commit 846b73e

Please sign in to comment.