Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions workflow #47

Merged
merged 5 commits into from
Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: build

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
15 changes: 0 additions & 15 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 @@
# Delete tweets

[![Build Status](https://travis-ci.com/koenrh/delete-tweets.svg?branch=master)](https://travis-ci.com/koenrh/delete-tweets)
![](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
Expand Down
3 changes: 1 addition & 2 deletions test_deletetweets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import unittest

from datetime import date
from deletetweets import TweetReader


Expand Down Expand Up @@ -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):
Expand Down