Skip to content

Commit

Permalink
Merge pull request #81 from pllim/tst-astropy-pr8769
Browse files Browse the repository at this point in the history
Test new models in astropy 4.0dev
  • Loading branch information
pllim committed Jul 24, 2019
2 parents 6b63431 + 84c490a commit 10b528a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Expand Up @@ -66,9 +66,10 @@ stages:

- template: azure-templates.yml
parameters:
name: 'LTS_Astropy'
name: 'Older_Versions'
numpyCmd: 'pip install numpy==1.15.4'
astropyCmd: 'pip install astropy==2.0.12'
scipyCmd: 'pip install scipy==1.1.0'
pythonVersion: '3.6'

- template: azure-templates.yml
Expand Down
5 changes: 4 additions & 1 deletion azure-templates.yml
Expand Up @@ -4,6 +4,7 @@ parameters:
name: 'Default' # Defaults for any parameters that aren't specified
vmImage: 'Ubuntu-16.04'
numpyCmd: 'pip install numpy'
scipyCmd: 'pip install scipy'
astropyCmd: 'pip install astropy'
synphotCmd: 'pip install synphot'
pythonVersion: '3.7'
Expand All @@ -29,6 +30,7 @@ jobs:
displayName: Set var on Linux/Darwin
# Disable --remote-data for Windows regardless of pytestExtraArgs
# due to some problem with parsing the args in powershell
- powershell: |
Set-Variable -Name PYTEST_EXTRA_ARGS -Value ''
Write-Host "##vso[task.setvariable variable=PYTEST_EXTRA_ARGS]$PYTEST_EXTRA_ARGS"
Expand All @@ -39,7 +41,8 @@ jobs:
sudo apt-get install libxml2-utils
python -m pip install --upgrade pip setuptools
${{ parameters.numpyCmd }}
pip install scipy beautifulsoup4 pytest-astropy
${{ parameters.scipyCmd }}
pip install beautifulsoup4 pytest-astropy
${{ parameters.astropyCmd }}
${{ parameters.synphotCmd }}
python setup.py test --open-files $(PYTEST_EXTRA_ARGS)
Expand Down

0 comments on commit 10b528a

Please sign in to comment.