forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set up CI with Azure Pipelines * FIX: Try conda too * FIX: yaml * WIP [skip appveyor] [skip travis] [skip circle] * WIP [skip appveyor] [skip travis] [skip circle] * WIP [skip appveyor] [skip travis] [skip circle] * WIP [skip appveyor] [skip travis] [skip circle] * WIP [skip appveyor] [skip travis] [skip circle] * WIP [skip appveyor] [skip travis] * WIP [skip appveyor] [skip travis] * WIP [skip appveyor] [skip travis] * FIX: Conditionals [skip travis] [skip appveyor] * WIP: [skip travis] [skip appveyor] * WIP: [skip travis] [skip appveyor] * WIP [skip travis] [skip appveyor] * WIP [skip travis] [skip appveyor] * FIX: Refreshenv [skip travis] [skip appveyor] * FIX: Refreshenv [skip travis] [skip appveyor] * FIX: Refreshenv [skip travis] [skip appveyor] * FIX: Refreshenv [skip travis] [skip appveyor] * FIX: Fix for xlrd * FIX: conftest * FIX: Fixes * FIX: OpenBLAS * FIX: Give up on x86 * DOC: Comment [ci skip] * FIX: Arch * FIX: Try longer timeout * FIX: Token * FIX: Mapped * FIX? [skip travis] [skip appveyor]
- Loading branch information
Showing
10 changed files
with
98 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.junit-results.xml | ||
*.pyc | ||
*.pyo | ||
*.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
trigger: | ||
# start a new build for every push | ||
batch: False | ||
branches: | ||
include: | ||
- master | ||
- maint/* | ||
|
||
jobs: | ||
- job: Windows | ||
pool: | ||
vmIMage: 'VS2017-Win2016' | ||
variables: | ||
MNE_LOGGING_LEVEL: 'warning' | ||
PIP_DEPENDENCIES: 'codecov' | ||
OPENBLAS_NUM_THREADS: 1 | ||
strategy: | ||
maxParallel: 4 | ||
matrix: | ||
# Eventually we should test x86 (32-bit), but it was a nightmare | ||
# to get it to download 32-bit Anaconda properly, and VTK does not ship | ||
# 32-bit Windows binaries via pip. | ||
Python35-64bit-full: | ||
PYTHON_VERSION: '3.5' | ||
PLATFORM: 'x86-64' | ||
TEST_MODE: 'conda' | ||
CONDA_ENVIRONMENT: 'environment.yml' | ||
Python37-64bit-full: | ||
PYTHON_VERSION: '3.7' | ||
PYTHON_ARCH: 'x64' | ||
TEST_MODE: 'pip' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: $(PYTHON_VERSION) | ||
architecture: $(PYTHON_ARCH) | ||
addToPath: true | ||
condition: eq(variables['TEST_MODE'], 'pip') | ||
- powershell: | | ||
Set-StrictMode -Version Latest | ||
$ErrorActionPreference = "Stop" | ||
$PSDefaultParameterValues['*:ErrorAction']='Stop' | ||
pip install --upgrade numpy scipy vtk | ||
pip install --upgrade -r requirements.txt | ||
pip install $env:PIP_DEPENDENCIES | ||
condition: eq(variables['TEST_MODE'], 'pip') | ||
displayName: 'Install dependencies with pip' | ||
- powershell: | | ||
Set-StrictMode -Version Latest | ||
$ErrorActionPreference = "Stop" | ||
$PSDefaultParameterValues['*:ErrorAction']='Stop' | ||
$env:PYTHON = '$(System.DefaultWorkingDirectory)' + '\conda' | ||
git clone git://github.com/astropy/ci-helpers.git | ||
powershell ci-helpers/appveyor/install-miniconda.ps1 | ||
$env:PATH = $env:PYTHON + "\envs\test;" + $env:PYTHON + "\envs\test\Scripts;" + $env:PYTHON + ";" + $env:PYTHON + "\Scripts;" + $env:PATH | ||
pip uninstall -yq mne | ||
Write-Host ("##vso[task.setvariable variable=PATH]" + $env:PATH) | ||
condition: eq(variables['TEST_MODE'], 'conda') | ||
displayName: 'Install dependencies with conda' | ||
- script: python setup.py develop | ||
displayName: 'Install MNE-Python dev' | ||
- script: python -c "import mne; print(mne.sys_info())" | ||
displayName: 'Print config' | ||
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)" | ||
displayName: 'Get test data' | ||
- script: pytest -m "not ultraslowtest" mne --cov=mne | ||
displayName: 'Run tests' | ||
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN% | ||
displayName: 'Codecov' | ||
env: | ||
CODECOV_TOKEN: $(CODECOV_TOKEN) | ||
condition: always() | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: 'junit-*.xml' | ||
testRunTitle: 'Publish test results for Python $(python.version)' | ||
condition: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ dependencies: | |
- nilearn | ||
- neo | ||
- pytest-faulthandler | ||
- pytest-sugar | ||
- pydocstyle | ||
- codespell | ||
- python-picard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters