Skip to content

Commit

Permalink
Merge pull request #117 from cfstacks/ci
Browse files Browse the repository at this point in the history
Replace travis with GitHub actions
  • Loading branch information
alekna committed May 29, 2020
2 parents 0b20932 + 7728180 commit 8ff3047
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 38 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install flake8 and Tox
run: pip install flake8 tox
- name: Lint with flake8
run: |
flake8 stacks --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 stacks --count --exit-zero --max-complexity=10
- name: Run Tox
run: tox -e py
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from setuptools import setup, find_packages

base_dir = os.path.dirname(__file__)
Expand Down Expand Up @@ -38,7 +39,7 @@
'stacks = stacks.__main__:main',
],
},

'python_requires': '>=3',
}

setup(**config)

0 comments on commit 8ff3047

Please sign in to comment.