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

Initial implementation of abstract class #126

Closed
wants to merge 7 commits into from
Closed
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
76 changes: 44 additions & 32 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,60 @@ on:
- cron: '0 5 * * 5'

jobs:
pep8:
runs-on: ubuntu-16.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Lint with flake8
run: |
python -m pip install --upgrade pip flake8
flake8 astrowidgets --count

tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install and build
run: python -m pip install tox --upgrade
- name: Run tests
run: tox -e test
include:

- name: Code style checks
os: ubuntu-latest
python: 3.x
toxenv: codestyle

- name: Python 3.9 with abstract only
os: ubuntu-latest
python: 3.9
toxenv: py39-test

- name: Python 3.8 with Ginga backend (Linux)
os: ubuntu-latest
python: 3.8
toxenv: py38-test-alldeps

- name: Python 3.9 with Ginga backend (Windows)
os: windows-latest
python: 3.9
toxenv: py39-test-alldeps

- name: Python 3.7 with Ginga backend (OSX)
os: macos-latest
python: 3.7
toxenv: py37-test-alldeps

- name: Python 3.9 with Ginga backend (dev)
os: ubuntu-latest
python: 3.9
toxenv: py39-test-devdeps

# NOTE: Uncomment when we really support oldest deps
#- name: Python 3.6 with Ginga backend (old)
# os: ubuntu-latest
# python: 3.6
# toxenv: py36-test-oldestdeps

devtests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install and build
run: python -m pip install tox --upgrade
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: python -m pip install --upgrade tox
- name: Run tests
run: tox -e test-devdeps
run: tox -e ${{ matrix.toxenv }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ MANIFEST
example_notebooks/test.png
*/version.py
pip-wheel-metadata/
example_notebooks/ginga/test.png

# Sphinx
docs/api
Expand Down
1 change: 1 addition & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python:
path: .
extra_requirements:
- docs
- ginga

# Don't build any extra formats
formats: []
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Widgets for the Jupyter notebook and JupyterLab
:alt: Documentation Status

``astrowidgets`` aims to be a set of astronomy widgets for Jupyter Lab or Notebook,
leveraging the Astropy ecosystem. The ``ImageWidget`` implements the API documented at
leveraging the Astropy ecosystem. The ``BaseImageWidget`` implements the API documented at
`https://github.com/eteq/nb-astroimage-api <https://github.com/eteq/nb-astroimage-api>`_

**Warning**
Expand Down
Loading