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

Adding python 3.10 to CI #2186

Merged
merged 9 commits into from
Dec 25, 2021
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
22 changes: 8 additions & 14 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ jobs:
python: 3.x
toxenv: codestyle

- name: docs build
os: ubuntu-latest
python: 3.8
toxenv: build_docs
toxargs: -v

- name: oldest dependencies
os: ubuntu-latest
python: 3.7
Expand All @@ -41,20 +35,20 @@ jobs:

- name: astropy dev with all dependencies with coverage
os: ubuntu-latest
python: 3.9
toxenv: py39-test-alldeps-devastropy-cov
python: '3.10'
toxenv: py310-test-alldeps-devastropy-cov
toxargs: -v

- name: Python 3.7 with all optional dependencies (MacOS X)
- name: Python 3.8 with all optional dependencies (MacOS X)
os: macos-latest
python: 3.7
toxenv: py37-test-alldeps
python: 3.8
toxenv: py38-test-alldeps
toxargs: -v

- name: Python 3.8 with mandatory dependencies (Windows)
- name: Python 3.9 with mandatory dependencies (Windows)
os: windows-latest
python: 3.8
toxenv: py38-test
python: 3.9
toxenv: py39-test
toxargs: -v

steps:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ python:
path: .
extra_requirements:
- docs
- all_lt_39
- all

sphinx:
fail_on_warning: true
Expand Down
28 changes: 28 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst

from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
TESTED_VERSIONS)


def pytest_configure(config):
config.option.astropy_header = True

PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
PYTEST_HEADER_MODULES['APLpy'] = 'aplpy'
PYTEST_HEADER_MODULES['pyregion'] = 'pyregion'
PYTEST_HEADER_MODULES['regions'] = 'regions'
PYTEST_HEADER_MODULES['pyVO'] = 'pyvo'
PYTEST_HEADER_MODULES['mocpy'] = 'mocpy'
PYTEST_HEADER_MODULES['astropy-healpix'] = 'astropy_healpix'
PYTEST_HEADER_MODULES['vamdclib'] = 'vamdclib'

# keyring doesn't provide __version__ any more
# PYTEST_HEADER_MODULES['keyring'] = 'keyring'

# add '_testrun' to the version name so that the user-agent indicates that
# it's being run in a test
from astroquery import version
version.version += '_testrun'

TESTED_VERSIONS['astroquery'] = version.version
TESTED_VERSIONS['astropy_helpers'] = version.astropy_helpers_version
9 changes: 2 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ filterwarnings =
# Upstream, remove when fixed, PRs have been opened
ignore::DeprecationWarning:pyvo
ignore::DeprecationWarning:regions
# Should ignore these for astropy<5.0
ignore:getName|currentThread:DeprecationWarning:astropy
# This should be cleared once we requre astropy>=4.1
ignore:tostring\(\) is deprecated. Use tobytes:DeprecationWarning:astropy
markers =
Expand Down Expand Up @@ -172,12 +174,5 @@ all=
astropy-healpix
boto3
regions
# aplpy is not py39 compatible (it requires shapely that doesn't compile
# pyregion is not py39 compatible
all_lt_39=
mocpy>=0.5.2
regions
pyregion
astropy-healpix
aplpy
boto3
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
py{37,38,39,310}-test{,-alldeps,-oldestdeps}{,-devastropy}{,-cov}
codestyle
build_docs
requires =
Expand Down Expand Up @@ -41,8 +41,8 @@ deps =

extras =
test
!py39-alldeps: all_lt_39
py39-alldeps: all
alldeps: all


commands =
pip freeze
Expand Down