Skip to content

Commit

Permalink
Switch tests from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemanja Martinovic committed May 4, 2021
1 parent 09d1a62 commit 4c9b273
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python_actions.yml
@@ -0,0 +1,29 @@
name: GitHub Actions CI

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade wheel setuptools pip
pip install -U -r requirements.txt
pip install -U -r dev-requirements.txt
- name: Test with pytest
run: |
py.test
- name: Upload coverage data to coveralls.io
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions dev-requirements.txt
@@ -1,5 +1,5 @@
coveralls==1.8.2
coverage==4.5.4
coveralls==2.2.0
coverage==5.2.1
Flask-Testing==0.8.0
httpretty==0.8.10; python_version < '3.0'
httpretty==1.0.5; python_version > '3.0'
Expand Down

0 comments on commit 4c9b273

Please sign in to comment.