Skip to content
Closed
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
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to have one GHA actions for it to start in PRs. I'm not sure if there is another way.


on:
pull_request:
push:
branches: [master]

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["2.7", "3.8", "3.9"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2

- name: Python ${{ matrix.python-version }}
run: |
pip install coveralls
pip install -e . --force-reinstall

- name: Tests
run: |
coverage run setup.py test

# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this one commented out b/c someone with admin privileges will need to set that token up. (I can remove this part of the code if you don't want it there.)

41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.