Skip to content

Commit

Permalink
first attempt at github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed May 26, 2020
1 parent 099f418 commit 229bfe9
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 39 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build/test on Linux
# This workflow is triggered on pushes to the repository.
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
py: [
'3.5',
'3.6',
'3.7',
'3.8',
'pypy3'
]
name: "Python: ${{ matrix.py }}"
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.py }}
architecture: x64
- run: pip install tox
- name: Running tox
run: tox -e py
coverage:
runs-on: ubuntu-latest
name: Validate coverage
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.7
architecture: x64
- run: pip install tox
- run: tox -e py37,coverage
docs:
runs-on: ubuntu-latest
name: Build the documentation
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.7
architecture: x64
- run: pip install tox
- run: tox -e docs
28 changes: 28 additions & 0 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build/test on MacOS
# This workflow is triggered on pushes to the repository.
on: [push, pull_request]

jobs:
test:
runs-on: macOS-latest
strategy:
matrix:
py: [
'3.5',
'3.6',
'3.7',
'3.8',
'pypy3'
]
architecture: ['x64']
name: "Python: ${{ matrix.py }}"
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
run: tox -e py
27 changes: 27 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build/test on Windows
# This workflow is triggered on pushes to the repository.
on: [push, pull_request]

jobs:
test:
runs-on: windows-2019
strategy:
matrix:
py: [
'3.5',
'3.6',
'3.7',
'3.8'
]
architecture: ['x86', 'x64']
name: "Python: ${{ matrix.py }} (${{ matrix.architecture }})"
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
run: tox -e py
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

10 changes: 8 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ wired
.. image:: https://img.shields.io/pypi/v/wired.svg
:target: https://pypi.org/pypi/wired

.. image:: https://img.shields.io/travis/mmerickel/wired/master.svg
:target: https://travis-ci.org/mmerickel/wired
.. image:: https://github.com/mmerickel/wired/workflows/ci-linux/badge.svg
:target: https://github.com/mmerickel/wired/actions?query=workflow%3A%22Build%2Ftest+on+Linux%22

.. image:: https://github.com/mmerickel/wired/workflows/Build/test%20on%20MacOS/badge.svg
:target: https://github.com/mmerickel/wired/actions?query=workflow%3A%22Build%2Ftest+on+MacOS%22

.. image:: https://github.com/mmerickel/wired/workflows/ci-windows/badge.svg
:target: https://github.com/mmerickel/wired/actions?query=workflow%3A%22Build%2Ftest+on+Windows%22

.. image:: https://readthedocs.org/projects/wired/badge/?version=latest
:target: https://readthedocs.org/projects/wired/?badge=latest
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def readfile(name):
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down

0 comments on commit 229bfe9

Please sign in to comment.