Skip to content

Commit

Permalink
Merge 2555bf9 into 142797c
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Dec 21, 2020
2 parents 142797c + 2555bf9 commit b7c163d
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 79 deletions.
14 changes: 0 additions & 14 deletions .appveyor.yml

This file was deleted.

84 changes: 84 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,84 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
tests:
name: "py${{ matrix.python-version }} / ${{ matrix.os }} / extras: ${{ matrix.extras }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
extras: [true]
os: ["ubuntu-latest"]
include:
- python-version: "3.8"
extras: false
os: "ubuntu-latest"
- python-version: "3.8"
extras: true
os: "macos-latest"
- python-version: "3.8"
extras: true
os: "windows-latest"

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: ${{ matrix.extras }}
run: |
python -m pip install -U pip
python -m pip install -e ".[extras,tests]"
- name: Install dependencies without extras
if: ${{ !matrix.extras }}
run: |
python -m pip install -U pip
python -m pip install -e ".[tests]"
- name: Run tests
run: |
python -m pytest -v src/emcee/tests --cov emcee
- name: Get unique id
if: ${{ matrix.os != 'windows-latest' }}
id: unique-id
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: |
export JOB_ID=`echo $STRATEGY_CONTEXT | md5sum`
echo "::set-output name=id::$JOB_ID"
- uses: actions/upload-artifact@v2
if: ${{ matrix.os != 'windows-latest' }}
with:
name: cov-${{ steps.unique-id.outputs.id }}
path: .coverage

coverage:
name: "Merge and upload coverage"
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Download all artifacts
uses: actions/download-artifact@v2
- name: Merge and upload coverage
run: |
python -m pip install coveralls
find . -name \.coverage -exec coverage combine --append {} \;
coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.rst
Expand Up @@ -5,10 +5,8 @@ emcee

.. image:: https://img.shields.io/badge/GitHub-dfm%2Femcee-blue.svg?style=flat
:target: https://github.com/dfm/emcee
.. image:: http://img.shields.io/travis/dfm/emcee/master.svg?style=flat
:target: http://travis-ci.org/dfm/emcee
.. image:: https://ci.appveyor.com/api/projects/status/p8smxvleh8mrcn6m?svg=true&style=flat
:target: https://ci.appveyor.com/project/dfm/emcee
.. image:: https://github.com/dfm/emcee/workflows/Tests/badge.svg
:target: https://github.com/dfm/emcee/actions?query=workflow%3ATests
.. image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
:target: https://github.com/dfm/emcee/blob/master/LICENSE
.. image:: http://img.shields.io/badge/arXiv-1202.3665-orange.svg?style=flat
Expand Down
6 changes: 2 additions & 4 deletions docs/index.rst
Expand Up @@ -18,10 +18,8 @@ emcee has been used in :doc:`quite a few projects in the astrophysical literatur

.. image:: https://img.shields.io/badge/GitHub-dfm%2Femcee-blue.svg?style=flat
:target: https://github.com/dfm/emcee
.. image:: https://img.shields.io/travis/dfm/emcee/master.svg?style=flat
:target: https://travis-ci.org/dfm/emcee
.. image:: https://ci.appveyor.com/api/projects/status/p8smxvleh8mrcn6m?svg=true&style=flat
:target: https://ci.appveyor.com/project/dfm/emcee
.. image:: https://github.com/dfm/emcee/workflows/Tests/badge.svg
:target: https://github.com/dfm/emcee/actions?query=workflow%3ATests
.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat
:target: https://github.com/dfm/emcee/blob/master/LICENSE
.. image:: https://img.shields.io/badge/arXiv-1202.3665-orange.svg?style=flat
Expand Down
10 changes: 0 additions & 10 deletions tox.ini

This file was deleted.

0 comments on commit b7c163d

Please sign in to comment.