Skip to content

Commit

Permalink
Merge pull request #64 from hugovk/rm-travis
Browse files Browse the repository at this point in the history
Move CI to GitHub Actions
  • Loading branch information
hugovk authored Dec 9, 2020
2 parents 5f1227b + eaa5dc6 commit 247f186
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 26 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on: [push, pull_request]

env:
FORCE_COLOR: 1

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"]
os: [ubuntu-latest]

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-get install libsane-dev
# No tests: just check it can build and install
- name: Test build and install
shell: bash
run: |
python setup.py build
python setup.py install
- name: Lint
shell: bash
run: |
pip install pycodestyle pyflakes
pycodestyle --statistics --count . || true
pyflakes . | tee >(wc -l)
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit 247f186

Please sign in to comment.