From d0c1ff768974b6fef09a23ffea7a97942495efa8 Mon Sep 17 00:00:00 2001 From: Koen Rouwhorst Date: Fri, 13 Sep 2019 08:55:04 +0200 Subject: [PATCH 1/5] Add GitHub Actions workflow --- .github/workflows/pythonpackage.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pythonpackage.yml diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 0000000..0c955e8 --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,36 @@ +--- +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [2.7, 3.5, 3.6, 3.7] + + steps: + - uses: actions/checkout@v1 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Lint with flake8 + run: | + pip install flake8 + flake8 . --count --max-line-length=127 --statistics + + - name: Test with pytest + run: | + pip install pytest + pytest From ecc195bad3b24c4f3f8a76833a49836a8b2994e4 Mon Sep 17 00:00:00 2001 From: Koen Rouwhorst Date: Fri, 13 Sep 2019 08:56:18 +0200 Subject: [PATCH 2/5] Remove Travis CI config file --- .travis.yml | 15 --------------- README.md | 2 -- 2 files changed, 17 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 82e5b48..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -sudo: false -dist: xenial -cache: pip -language: python -python: - - "2.7" - - "3.5" - - "3.7" -install: - - pip install -r requirements.txt -script: - - pytest -notifications: - email: false diff --git a/README.md b/README.md index 5f6ee7e..8e2ad51 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Delete tweets -[![Build Status](https://travis-ci.com/koenrh/delete-tweets.svg?branch=master)](https://travis-ci.com/koenrh/delete-tweets) - This is a simple script that helps you delete tweets (or just replies or retweets) from your timeline. There are quite a few third-party services that allow you to delete tweets, but these very likely will not allow you to delete tweets beyond From 6b28f4b6acbd71abef04f4f01b60a65d3524bbcc Mon Sep 17 00:00:00 2001 From: Koen Rouwhorst Date: Fri, 13 Sep 2019 09:23:24 +0200 Subject: [PATCH 3/5] Fix flake8 errors E231 missing whitespace after ',' F401 'datetime.date' imported but unused --- test_deletetweets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_deletetweets.py b/test_deletetweets.py index 7b5a0f0..b6ec128 100644 --- a/test_deletetweets.py +++ b/test_deletetweets.py @@ -1,6 +1,5 @@ import unittest -from datetime import date from deletetweets import TweetReader @@ -76,7 +75,7 @@ def test_tweet_reader_spare(self): expected = [{"id_str": "21"}, {"id_str": "22"}] for idx, val in enumerate(TweetReader(FakeReader(tweets), - spare=["22","23"]).read()): + spare=["22", "23"]).read()): self.assertEqual(expected[idx]["id_str"], val["id_str"]) def test_tweet_reader_likes(self): From 88b0a160d1aec101b35776b75ee038923ce88fdd Mon Sep 17 00:00:00 2001 From: Koen Rouwhorst Date: Fri, 13 Sep 2019 09:30:24 +0200 Subject: [PATCH 4/5] Add GitHub Actions status badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8e2ad51..118f74b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Delete tweets +![](https://github.com/koenrh/delete-tweets/workflows/pythonpackage/badge.svg) + This is a simple script that helps you delete tweets (or just replies or retweets) from your timeline. There are quite a few third-party services that allow you to delete tweets, but these very likely will not allow you to delete tweets beyond From 983e374380da7ce98b86ce910078216a2b69dc5e Mon Sep 17 00:00:00 2001 From: Koen Rouwhorst Date: Fri, 13 Sep 2019 09:33:39 +0200 Subject: [PATCH 5/5] Rename GitHub Actions workflow --- .github/workflows/{pythonpackage.yml => build.yml} | 3 +-- README.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename .github/workflows/{pythonpackage.yml => build.yml} (97%) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/build.yml similarity index 97% rename from .github/workflows/pythonpackage.yml rename to .github/workflows/build.yml index 0c955e8..021ad07 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,10 @@ --- -name: Python package +name: build on: [push] jobs: build: - runs-on: ubuntu-latest strategy: max-parallel: 4 diff --git a/README.md b/README.md index 118f74b..7b50680 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Delete tweets -![](https://github.com/koenrh/delete-tweets/workflows/pythonpackage/badge.svg) +![](https://github.com/koenrh/delete-tweets/workflows/build/badge.svg) This is a simple script that helps you delete tweets (or just replies or retweets) from your timeline. There are quite a few third-party services that allow you