Skip to content

Commit

Permalink
Merge pull request #232 from e-koch/use_gh_actions
Browse files Browse the repository at this point in the history
Change to using github actions for CI
  • Loading branch information
e-koch authored Nov 27, 2020
2 parents bb6dfab + d4930db commit 7b65322
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 142 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Run tests

on: [push, pull_request]

jobs:
tests:
name: ${{ matrix.name}}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: 3.7
name: Python 3.7 with minimal dependencies
toxenv: py37-test

- os: ubuntu-18.04
python-version: 3.6
name: Python 3.6 with minimal dependencies
toxenv: py36-test

- os: ubuntu-latest
python-version: 3.7
name: Python 3.7 with all dependencies
toxenv: py37-test-all

- os: ubuntu-latest
python-version: 3.8
name: Python 3.8, all dependencies, and dev versions of key dependencies
toxenv: py38-test-dev

- os: macos-latest
python-version: 3.7
name: Python 3.7 with all dependencies, and dev versions of key dependencies on MacOS X
toxenv: py37-test-all-dev

# - os: windows-latest
# python-version: 3.7
# name: Python 3.7, all dependencies, and dev versions of key dependencies on Windows
# toxenv: py37-test-all-dev

- os: ubuntu-latest
python-version: 3.8
name: Documentation
toxenv: build_docs

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install testing dependencies
run: python -m pip install tox codecov
- name: Run tests with ${{ matrix.name }}
run: tox -v -e ${{ matrix.toxenv }}
- name: Upload coverage to codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
141 changes: 0 additions & 141 deletions .travis.yml

This file was deleted.

8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ addopts = --doctest-rst

[coverage:run]
omit =
turbustat/_astropy_init*
turbustat/__init__*
turbustat/conftest.py
turbustat/*setup_package*
turbustat/tests/*
Expand All @@ -63,6 +63,12 @@ omit =
*/turbustat/*/tests/*
*/turbustat/extern/*
*/turbustat/version*
*/turbustat/tests/test_*
*/turbustat/extern/*
*/turbustat/utils/compat/*
*/turbustat/version*
*/turbustat/wcs/docstrings*
*/turbustat/_erfa/*

[coverage:report]
exclude_lines =
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ extras =
commands =
pip freeze
pytest --open-files --pyargs turbustat {toxinidir}/docs --cov turbustat --cov-config={toxinidir}/setup.cfg {posargs}
coverage xml -o {toxinidir}/coverage.xml

[testenv:build_docs]
changedir =
Expand Down

0 comments on commit 7b65322

Please sign in to comment.