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

Remove astropy test runner and other updates #185

Merged
merged 7 commits into from
Mar 8, 2025
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
8 changes: 4 additions & 4 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.10'
python-version: '3.11'
- name: Install and build
run: python -m pip install tox --upgrade
- name: Run tests
run: tox -e py310-test
run: tox -e py311-test

devtests:
runs-on: ubuntu-latest
Expand All @@ -56,8 +56,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.11'
python-version: '3.13'
- name: Install and build
run: python -m pip install tox --upgrade
- name: Run tests
run: tox -e py311-test-devdeps
run: tox -e py313-test-devdeps
10 changes: 4 additions & 6 deletions astrowidgets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst

# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init import * # noqa
# ----------------------------------------------------------------------------
try:
from .version import version as __version__
except ImportError:
__version__ = ''

from .ginga import * # noqa
17 changes: 0 additions & 17 deletions astrowidgets/_astropy_init.py

This file was deleted.

26 changes: 0 additions & 26 deletions astrowidgets/conftest.py

This file was deleted.

4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ docs =
[coverage:run]
source = astrowidgets
omit =
astrowidgets/_astropy_init*
astrowidgets/conftest*
astrowidgets/cython_version*
astrowidgets/setup_package*
astrowidgets/*/setup_package*
Expand All @@ -66,8 +64,6 @@ omit =
astrowidgets/*/tests/*
astrowidgets/*/*/tests/*
astrowidgets/version*
*/astrowidgets/_astropy_init*
*/astrowidgets/conftest*
*/astrowidgets/cython_version*
*/astrowidgets/setup_package*
*/astrowidgets/*/setup_package*
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311}-test{,-devdeps,-predeps}
py{310,311,312,313}-test{,-devdeps,-predeps}
requires =
setuptools >= 30.3.0
pip >= 19.3.1
Expand All @@ -9,14 +9,15 @@ requires =
setenv =
MPLBACKEND=agg
JUPYTER_PLATFORM_DIRS=1
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple

extras = test

changedir =
test: .tmp/{envname}

deps =
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
devdeps: astropy>=0.0.dev0
devdeps: git+https://github.com/ejeschke/ginga.git#egg=ginga

commands =
Expand Down