Skip to content

Commit

Permalink
Add GitHub Actions workflow to replace Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jan 28, 2021
1 parent b3cab16 commit d165ec4
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
- pypy-2.7
- pypy-3.6
- pypy-3.7
steps:
- name: Checkout SSH docker container
run: docker pull sjourdan/alpine-sshd
- name: Checkout code
uses: actions/checkout@v1
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install -U pip wheel setuptools
- name: Install test dependencies
run: python -m pip install -U -r tests/requirements.txt
- name: Install local code
run: python -m pip install .
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Report coverage
run: python -m coverage report
- name: Export coverage statistics
run: python -m coverage xml
- name: Upload coverage statistics to Codecov
run: python -m codecov

0 comments on commit d165ec4

Please sign in to comment.