Skip to content

Commit

Permalink
Removed Travis and Appveyor in favor of GH actions (#73)
Browse files Browse the repository at this point in the history
* github actions

* more actions

* removed py39

* more actions

* more actions

* more actions

* more actions

* environment variables

* actions

* actions

* os

* os

* os

* os

* os

* os

* os

* os

* os

* os

* os

* os

* os

* os

* os

* attempt to get glibc to work

* attempt to get glibc to work

* attempt to get glibc to work

* attempt to get glibc to work

* attempt to get glibc to work

* attempt to get glibc to work

* attempt to get glibc to work

* removed travis and appveyor

* cleanup

* cleanup

* cleanup

* cleanup

* only build wheels on master

* badge
  • Loading branch information
tommyod committed Nov 20, 2020
1 parent 06408d3 commit 74d5c2a
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 138 deletions.
62 changes: 0 additions & 62 deletions .appveyor.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Python CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # weekly

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Allow one of the matrix builds to fail without failing others
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]


# The job
name: Python ${{ matrix.python-version }} / ${{ matrix.os }}

# The steps in the job. Each step either RUNS code, or USES an action
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Run tests and linting
run: |
pip install -r requirements.txt --quiet
pip install pep8>=1.7.1 flake8>=3.5.0 black pip --upgrade --quiet
pip install -e .
black KDEpy -l 120 --check
flake8 --show-source --ignore=F811,W293,W391,W292,W291,W504,W503,E231 --max-line-length=120 --exclude="*examples.py,testing.py,*kde.py" KDEpy
pytest KDEpy --doctest-modules --capture=sys
# ======================= BUILD WHEELS AND UPLOAD TO PYPI ==================================

- name: Build wheels ${{ matrix.python-version }} on ${{ matrix.os }}
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
env:
CIBW_BUILD: 'cp36-* cp37-* cp38-*'
run: |
pip install cibuildwheel twine --upgrade;
python -m cibuildwheel --output-dir dist;
- name: Publish Python distribution to PyPI
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
user: __token__
password: ${{ secrets.pypi_password }}

75 changes: 0 additions & 75 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![DOI](https://zenodo.org/badge/118142261.svg)](https://zenodo.org/badge/latestdoi/118142261) [![Build Status](https://travis-ci.com/tommyod/KDEpy.svg?branch=master)](https://travis-ci.com/tommyod/KDEpy) [![Build status](https://ci.appveyor.com/api/projects/status/2esjgx50mf6x1g67?svg=true)](https://ci.appveyor.com/project/tommyod/kdepy) [![Documentation Status](https://readthedocs.org/projects/kdepy/badge/?version=latest)](http://kdepy.readthedocs.io/en/latest/?badge=latest) [![PyPI version](https://badge.fury.io/py/KDEpy.svg)](https://badge.fury.io/py/KDEpy) [![Downloads](https://pepy.tech/badge/kdepy)](https://pepy.tech/project/kdepy)
[![DOI](https://zenodo.org/badge/118142261.svg)](https://zenodo.org/badge/latestdoi/118142261) ![Build Status](https://github.com/tommyod/KDEpy/workflows/Python%20CI/badge.svg?branch=master) [![Documentation Status](https://readthedocs.org/projects/kdepy/badge/?version=latest)](http://kdepy.readthedocs.io/en/latest/?badge=latest) [![PyPI version](https://badge.fury.io/py/KDEpy.svg)](https://badge.fury.io/py/KDEpy) [![Downloads](https://pepy.tech/badge/kdepy)](https://pepy.tech/project/kdepy)
---------

# [KDEpy](https://kdepy.readthedocs.io/en/latest/)
Expand Down

0 comments on commit 74d5c2a

Please sign in to comment.