Skip to content

Commit

Permalink
[BUGFIX] Add env vars to Pytest min versions Azure stage (#6239)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer authored Oct 28, 2022
1 parent 2961e55 commit 2fb32e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,20 @@ stages:
steps:
- bash: |
DOCKER_TAG="$(python.version)_$(IMAGE_SUFFIX)"
PYTEST="docker run --network=host greatexpectations/test:${DOCKER_TAG} bash -c \""
PYTEST="docker run -e AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) "
PYTEST+="-e AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) -e AWS_DEFAULT_REGION=$(AWS_DEFAULT_REGION) "
PYTEST+="--network=host greatexpectations/test:${DOCKER_TAG} bash -c \""
PYTEST+="printf 'Y\nY\n' | pip uninstall numpy pandas && "
PYTEST+="printf 'Y\nY\n' | pip install numpy==$(min_numpy) pandas==$(min_pandas) && "
PYTEST+="pytest --no-sqlalchemy --random-order --ignore=tests/cli --ignore=tests/integration/usage_statistic "
PYTEST+="--ignore=tests/rule_based_profiler/data_assistant/test_onboarding_data_assistant.py\""
echo ${PYTEST}
eval ${PYTEST}
displayName: 'Pytest min versions'
env:
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
AWS_DEFAULT_REGION: $(AWS_DEFAULT_REGION)
- job: test_usage_stats
dependsOn: [make_suffix, build_push]
Expand Down

0 comments on commit 2fb32e3

Please sign in to comment.