Skip to content

Commit

Permalink
Merge pull request #5 from pabluk/pabluk-coveralls
Browse files Browse the repository at this point in the history
Activate Coveralls actions
  • Loading branch information
pabluk committed Nov 17, 2019
2 parents cd67113 + de45864 commit a37cb7e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: Tests and coverage

on: [push]

Expand All @@ -17,13 +17,15 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install coveralls nose
pip install -r requirements-test.txt
- name: Test with Nose
run: |
nosetests --with-coverage --cover-package=application_only_auth
- name: Run coveralls
- name: Coveralls
run: |
coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ https://developer.twitter.com/en/docs/basics/authentication/overview/application
that offers applications the ability to issue authenticated requests on behalf
of the application itself (as opposed to on behalf of a specific user).

Tested with Python 2.6, 2.7, 3.3 and 3.4
Tested with Python 2.7, 3.5, 3.6 and 3.7

[![Build Status](https://travis-ci.org/pabluk/twitter-application-only-auth.png)](https://travis-ci.org/pabluk/twitter-application-only-auth)
[![Build Status](https://github.com/pabluk/twitter-application-only-auth/workflows/.github/workflows/tests.yml/badge.svg)](https://github.com/pabluk/twitter-application-only-auth/actions)
[![Coverage Status](https://coveralls.io/repos/pabluk/twitter-application-only-auth/badge.png)](https://coveralls.io/r/pabluk/twitter-application-only-auth)


Expand Down
3 changes: 3 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock==3.0.5; python_version <= '2.7'
nose==1.3.7
coveralls==1.8.2

0 comments on commit a37cb7e

Please sign in to comment.