From 0e254a9ddaa0f9569ca796ae84e548fa053c0a84 Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:22:30 -0500 Subject: [PATCH 1/7] Create tests.yml --- .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..2be3a8c5 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,22 @@ +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 3.7 + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Run tests - Python ${{ matrix.python-version }} + run: | + python setup.py test From 8267b148b33985b834d773038fd4764297ec45f4 Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:29:00 -0500 Subject: [PATCH 2/7] Create requirements.txt --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..b905e4ae --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +numpy +six +nose +mock From 9dd980fa7706470eac557b0c92adeedfde08add2 Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:30:06 -0500 Subject: [PATCH 3/7] Update tests.yml --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2be3a8c5..47021c6f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,4 +19,5 @@ jobs: python-version: ${{ matrix.python-version }} - name: Run tests - Python ${{ matrix.python-version }} run: | + pip install -r requirements.txt python setup.py test From be21a68cab9754871b166fbc77f23173cd38e50a Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:34:05 -0500 Subject: [PATCH 4/7] Delete .travis.yml --- .travis.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a4209e4e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python - -python: - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - - "nightly" - -script: - - python setup.py test \ No newline at end of file From 266fb195100ffa84880d860a8bbfe05c555d858f Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:36:16 -0500 Subject: [PATCH 5/7] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 47021c6f..6e57f76d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up Python 3.7 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} From ddeaa02df75fbae42b295891fb16e18d2086187c Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:39:06 -0500 Subject: [PATCH 6/7] Update tests.yml --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6e57f76d..418dedaf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,6 +17,14 @@ jobs: 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 From 85796501ee5850f87d07c256e0d59a31a781f72e Mon Sep 17 00:00:00 2001 From: David Hadka Date: Wed, 13 Nov 2019 14:43:43 -0500 Subject: [PATCH 7/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b080242d..81996ec9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Platypus -[![Build Status](https://travis-ci.org/Project-Platypus/Platypus.svg?branch=master)](https://travis-ci.org/Project-Platypus/Platypus) +GitHub Actions status [![Documentation Status](https://readthedocs.org/projects/platypus/badge/?version=latest)](http://platypus.readthedocs.org/en/latest/?badge=latest) ### What is Platypus?