Skip to content

Commit

Permalink
Merge pull request #119 from Project-Platypus/gh-actions
Browse files Browse the repository at this point in the history
Creation actions workflow
  • Loading branch information
dhadka authored Nov 13, 2019
2 parents 47debb5 + 8579650 commit 33920ee
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 13 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ '2.x', '3.x', 'pypy2', 'pypy3' ]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Run tests - Python ${{ matrix.python-version }}
run: |
pip install -r requirements.txt
python setup.py test
12 changes: 0 additions & 12 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,6 +1,6 @@
# Platypus

[![Build Status](https://travis-ci.org/Project-Platypus/Platypus.svg?branch=master)](https://travis-ci.org/Project-Platypus/Platypus)
<a href="https://github.com/Project-Platypus/Platypus"><img alt="GitHub Actions status" src="https://github.com/Project-Platypus/Platypus/workflows/Tests/badge.svg?branch=master&event=push"></a>
[![Documentation Status](https://readthedocs.org/projects/platypus/badge/?version=latest)](http://platypus.readthedocs.org/en/latest/?badge=latest)

### What is Platypus?
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy
six
nose
mock

0 comments on commit 33920ee

Please sign in to comment.