Skip to content

Commit

Permalink
Merge pull request #139 from pllim/last-action-hero
Browse files Browse the repository at this point in the history
TST: Use Actions
  • Loading branch information
pllim committed Nov 4, 2020
2 parents 03d7c2e + e942f34 commit b31baa2
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 68 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
pull_request:
schedule:
# Weekly Wednesday 6AM build
# * is a special character in YAML so you have to quote this string
- cron: '0 6 * * 3'

env:
PYSYN_CDBS: "https://ssb.stsci.edu/trds"

jobs:
initial_tests:
runs-on: ubuntu-16.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install and build
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install numpy astropy pytest-remotedata pytest-astropy-header
python setup.py install
- name: Test without remote data
run: pytest pysynphot

coverage_dev_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install and build
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install numpy pytest-remotedata pytest-astropy-header pytest-cov codecov coverage requests
python -m pip install git+https://github.com/astropy/astropy.git@master#egg=astropy
python setup.py install
# NOTE: If TRDS cannot take the hit, disable --remote-data
- name: Test with coverage, dev astropy, and remote data
run: pytest pysynphot --cov-report= --cov=pysynphot --remote-data
- name: Coverage report
uses: codecov/codecov-action@f532c3a # v1.0.7
with:
token: ${{ secrets.CODECOV_TOKEN }}
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
PySynphot
=========

|travisci| |docs| |codecov|
|ci| |docs| |codecov|

.. |docs| image:: https://readthedocs.org/projects/pysynphot/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://pysynphot.readthedocs.io/en/latest/?badge=latest

.. |travisci| image:: https://travis-ci.org/spacetelescope/pysynphot.svg?branch=master
:alt: Travis CI Status
:target: https://travis-ci.org/spacetelescope/pysynphot
.. |ci| image:: https://github.com/spacetelescope/pysynphot/workflows/CI/badge.svg
:alt: Github Actions CI Status

.. |codecov| image:: https://codecov.io/gh/spacetelescope/pysynphot/branch/master/graph/badge.svg
:alt: Coverage results
Expand Down

0 comments on commit b31baa2

Please sign in to comment.