Migrate CI from Travis to GitHub Actions (#30)

GitHub Actions are faster and more responsive than Travis, therefore,
improving the contributor experience.

By some reports, Travis is no longer offering free credits to OSS
projects: https://twitter.com/james_hilliard/status/1336081776691843072
pull/29/head
Jon Dufresne 2 years ago committed by GitHub
parent a4f9886004
commit d670e6903f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 57
      .github/workflows/ci.yml
  2. 68
      .travis.yml
  3. 5
      README.rst

@ -0,0 +1,57 @@
name: CI
on:
- pull_request
- push
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- codestyle
- docstyle
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
- name: Install tox
run: python -m pip install tox
- name: Run lint
run: tox -e ${{ matrix.target }}
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
- pypy2
- pypy3
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: python -m pip install tox
- name: Run tests
run: tox -e py

@ -1,68 +0,0 @@
language: python
cache: pip
python:
- pypy3
- pypy
env:
global:
- TOXENV=py
matrix:
include:
- python: 3.8
env: TOXENV=codestyle
- python: 3.8
env: TOXENV=docstyle
- python: 3.8
env: TOXENV=py38
- python: 3.7
env: TOXENV=py37
- python: 3.6
env: TOXENV=py36
- python: 3.5
env: TOXENV=py35
- python: 3.4
env: TOXENV=py34
- python: 2.7
env: TOXENV=py27
# Adding ppc64le jobs
- python: 3.8
arch: ppc64le
env: TOXENV=codestyle
- python: 3.8
arch: ppc64le
env: TOXENV=docstyle
- python: 3.8
arch: ppc64le
env: TOXENV=py38
- python: 3.7
arch: ppc64le
env: TOXENV=py37
- python: 3.6
arch: ppc64le
env: TOXENV=py36
- python: 3.5
arch: ppc64le
env: TOXENV=py35
- python: 3.4
arch: ppc64le
env: TOXENV=py34
exclude:
- arch: ppc64le
python: pypy
- arch: ppc64le
python: pypy3
before_install:
- |
if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then
sudo chown -Rv $USER:$GROUP ~/.cache/pip/wheels
fi
install:
- pip install tox
- if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then pip install pytest; pip install astropy; fi
script: tox

@ -6,9 +6,8 @@ jdcal
.. _IAU SOFA: http://www.iausofa.org/
.. _pip: https://pypi.org/project/pip/
.. image:: https://travis-ci.org/phn/jdcal.svg?branch=master
:target: https://travis-ci.org/phn/jdcal
.. image:: https://github.com/phn/jdcal/workflows/CI/badge.svg
:target: https://github.com/phn/jdcal/actions?query=workflow%3ACI
This module contains functions for converting between Julian dates and
calendar dates.

Loading…
Cancel
Save