Skip to content
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
30 changes: 17 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,38 @@ env:
# to repeat them for all configurations.
- NUMPY_VERSION=stable
- ASTROPY_VERSION=stable
- CONDA_DEPENDENCIES='scipy astroscrappy reproject scikit-image psutil'
- PIP_DEPENDENCIES=''
- CONDA_DEPENDENCIES='scipy reproject psutil cython astroscrappy'

# Need the latest scikit-image (0.14.2 or higher), which is not in
# anaconda yet.
- PIP_DEPENDENCIES='scikit-image'
- MAIN_CMD='python setup.py'
- SETUP_CMD='test'
- CONDA_CHANNELS='astropy-ci-extras astropy'
- ASTROPY_USE_SYSTEM_PYTEST=1

matrix:

- SETUP_CMD='egg_info'

matrix:
include:
- env: PYTHON_VERSION=3.7
SETUP_CMD='egg_info'

# Try Astropy/NumPy development versions. This requires them to be
# compiled during setup which takes some time.
- python: 3.6
env: ASTROPY_VERSION=development
- env: PYTHON_VERSION=3.7
ASTROPY_VERSION=development
NUMPY_VERSION=dev
SETUP_CMD='test --coverage'

# Check for sphinx doc build warnings
- python: 3.6
env: SETUP_CMD='build_docs -w'
- env: PYTHON_VERSION=3.7
SETUP_CMD='build_docs -w'

# Do coverage tests for both latest Python versions
- python: 3.6
env: ASTROPY_VERSION=3
- env: PYTHON_VERSION=3.7
ASTROPY_VERSION=3
SETUP_CMD='test --coverage'

# Check compatibility with the current astropy LTS release
Expand All @@ -71,12 +75,12 @@ matrix:

# Try numpy pre-release version. This runs only when a pre-release
# is available on pypi.
- python: 3.6
env: NUMPY_VERSION=prerelease
- env: PYTHON_VERSION=3.7
NUMPY_VERSION=prerelease

# pycodestyle test, see setup.cfg for tested pep8 warnings/errors
- python: 3.6
env: MAIN_CMD='pycodestyle ccdproc --count --show-source --show-pep8'
- env: PYTHON_VERSION=3.7
MAIN_CMD='pycodestyle ccdproc --count --show-source --show-pep8'
SETUP_CMD=''

install:
Expand Down
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ environment:
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
CONDA_DEPENDENCIES: "scipy astroscrappy reproject scikit-image"
PIP_DEPENDENCIES: ""
CONDA_DEPENDENCIES: "scipy reproject cython astroscrappy"
# Need the latest scikit-image (0.14.2 or higher), which is not in
# anaconda yet.
PIP_DEPENDENCIES: "scikit-image"
CONDA_CHANNELS: "astropy"
ASTROPY_USE_SYSTEM_PYTEST: 1

matrix:
- PYTHON_VERSION: "3.6"
- PYTHON_VERSION: "3.7"
ASTROPY_VERSION: "stable"
NUMPY_VERSION: "stable"

Expand Down
19 changes: 18 additions & 1 deletion ccdproc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,24 @@

import os

from astropy.tests.pytest_plugins import *
try:
from astropy.tests.plugins.display import (pytest_report_header,
PYTEST_HEADER_MODULES,
TESTED_VERSIONS)
except ImportError:
# When using astropy 2.0
from astropy.tests.pytest_plugins import (pytest_report_header,
PYTEST_HEADER_MODULES,
TESTED_VERSIONS)

try:
# This is the way to get plugins in astropy 2.x
from astropy.tests.pytest_plugins import *
except ImportError:
# Otherwise they are installed as separate packages that pytest
# automagically finds.
pass

from .tests.pytest_fixtures import *

# This is to figure out ccdproc version, rather than using Astropy's
Expand Down