Skip to content

Commit

Permalink
Merge pull request #118 from pllim/last-actions-hero
Browse files Browse the repository at this point in the history
TST: Use GitHub Actions
  • Loading branch information
mwcraig committed Nov 14, 2020
2 parents 19d427a + 4b7679c commit d4e69db
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 162 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
pull_request:
schedule:
# Weekly Friday 5AM build
# * is a special character in YAML so you have to quote this string
- 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:
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

devtests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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
- name: Run tests
run: tox -e test-devdeps
141 changes: 0 additions & 141 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Widgets for the Jupyter notebook and JupyterLab
:target: http://www.astropy.org
:alt: Powered by Astropy Badge

.. image:: https://travis-ci.org/astropy/astrowidgets.svg?branch=master
:target: https://travis-ci.org/astropy/astrowidgets
:alt: Travis CI Status
.. image:: https://github.com/astropy/astrowidgets/workflows/CI/badge.svg
:target: https://github.com/astropy/astrowidgets/actions
:alt: CI Status

.. image:: https://readthedocs.org/projects/astrowidgets/badge/?version=latest
:target: https://astrowidgets.readthedocs.io/en/latest/?badge=latest
Expand Down
23 changes: 5 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
[tox]
envlist =
test{,-devdeps}
requires =
setuptools >= 30.3.0
pip >= 19.3.1
setuptools_scm
isolated_build = true


[testenv]
extras = test
changedir =
test: .tmp/{envname}

[testenv:test]
deps =
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
devdeps: git+https://github.com/ejeschke/ginga.git#egg=ginga
commands =
pytest --pyargs astrowidgets {toxinidir}/docs {posargs}

[testenv:coverage]
requires =
pytest-cov
coverage
commands =
pytest --cov astrowidgets --cov-config={toxinidir}/setup.cfg

[testenv:build_docs]
extras = docs
setenv =
HOME = {envtmpdir}
changedir = docs
commands =
sphinx-build . _build/html -b html {posargs}

0 comments on commit d4e69db

Please sign in to comment.