Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name of testing conda environment #3110

Merged
merged 1 commit into from
Jul 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
steps:
- template: ci/azure/install.yml
- bash: |
source activate test_env
source activate xarray-tests
mypy . || exit 0
displayName: mypy type checks

Expand All @@ -76,7 +76,7 @@ jobs:
parameters:
env_file: doc/environment.yml
- bash: |
source activate test_env
source activate xarray-tests
cd doc
sphinx-build -n -j auto -b html -d _build/doctrees . _build/html
displayName: Build HTML docs
Expand All @@ -89,6 +89,6 @@ jobs:
steps:
- template: ci/azure/install.yml
- bash: |
source activate test_env
source activate xarray-tests
pytest properties
displayName: Property based tests
8 changes: 4 additions & 4 deletions ci/azure/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ steps:
- template: add-conda-to-path.yml

- bash: |
conda env create -n test_env --file ${{ parameters.env_file }}
conda env create -n xarray-tests --file ${{ parameters.env_file }}
displayName: Install conda dependencies

- bash: |
source activate test_env
source activate xarray-tests
pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
--no-deps \
--pre \
Expand All @@ -29,12 +29,12 @@ steps:
displayName: Install upstream dev dependencies

- bash: |
source activate test_env
source activate xarray-tests
pip install --no-deps -e .
displayName: Install xarray

- bash: |
source activate test_env
source activate xarray-tests
conda info -a
conda list
python xarray/util/print_versions.py
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ steps:
- template: install.yml

- bash: |
source activate test_env
source activate xarray-tests
python -OO -c "import xarray"
displayName: Import xarray

# Work around for allowed test failures:
# https://github.com/microsoft/azure-pipelines-tasks/issues/9302
- bash: |
source activate test_env
source activate xarray-tests
pytest xarray \
--junitxml=junit/test-results.xml \
--cov=xarray \
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/py35-min.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_env
name: xarray-tests
dependencies:
- python=3.5.0
- pytest
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/py36-hypothesis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_env
name: xarray-tests
channels:
- conda-forge
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/py36.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_env
name: xarray-tests
channels:
- conda-forge
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/py37-windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_env
name: xarray-tests
channels:
- conda-forge
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/py37.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_env
name: xarray-tests
channels:
- conda-forge
dependencies:
Expand Down
4 changes: 2 additions & 2 deletions doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ We'll now kick off a two-step process:

# Create and activate the build environment
conda env create -f ci/requirements/py36.yml
conda activate test_env
conda activate xarray-tests

# or with older versions of Anaconda:
source activate test_env
source activate xarray-tests

# Build and install xarray
pip install -e .
Expand Down