Skip to content

Commit

Permalink
chore: move to GitHub actions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
smira committed Sep 15, 2021
1 parent 01becdf commit a6340c9
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 36 deletions.
3 changes: 2 additions & 1 deletion .coveragerc
@@ -1,6 +1,7 @@
[run]
source = txzmq
relative_files = True

[report]
omit =
*/test/*
*/test/*
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,49 @@
name: Build and Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.7, 3.8, 3.9, pypy2, pypy3]
reactor: [select, epoll]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install -y libzmq3-dev
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test
env:
REACTOR: ${{ matrix.reactor }}
run: |
PYTHONPATH=. coverage run `which trial` --reactor=$REACTOR txzmq
- name: Lint
run: |
pycodestyle --repeat txzmq
pyflakes txzmq
- name: Integration
run: |
python examples/integration_test.py
- name: Submit to coveralls
uses: AndreMiras/coveralls-python-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
complete_coverals:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

0 comments on commit a6340c9

Please sign in to comment.