Skip to content

Commit

Permalink
GitHub Actions (#1231)
Browse files Browse the repository at this point in the history
* port to github actions

* remove travis

* cover the 3.2 branch for now too
  • Loading branch information
reaperhulk committed Apr 9, 2020
1 parent 771ce8a commit 54c147f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 22 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Actions CI
on:
pull_request: {}
push:
branches:
- master
- release-3-2-0
tags:
- 'v*.*.*'

jobs:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- 3.7
task:
- name: Lint
command: |
./tests/scripts/pylint.sh
- name: Test
command: |
./tests/scripts/unit_tests.sh
./manage.py test rules
./manage.py test classifier
- name: Docs
command: |
sphinx-build -W docs/source docs/build
- name: Bandit
command: |
bandit --ini setup.cfg -r .
name: "Python ${{ matrix.python }}/${{ matrix.task.name }}"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v1"
with:
python-version: ${{ matrix.python }}
- name: Install requirements
run: pip install -r requirements.txt
- name: ${{ matrix.task.name }}
run: ${{ matrix.task.command }}
- name: Submit Coverage
run: coveralls
if: matrix.task.name == 'Test'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
StreamAlert - Serverless, Realtime Data Analysis Framework
==========================================================

.. image:: https://travis-ci.org/airbnb/streamalert.svg?branch=master
:target: https://travis-ci.org/airbnb/streamalert
.. image:: https://github.com/airbnb/streamalert/workflows/Actions%20CI/badge.svg
:target: https://github.com/airbnb/streamalert/actions?query=workflow%3AActions+CI

.. image:: https://coveralls.io/repos/github/airbnb/streamalert/badge.svg?branch=master
:target: https://coveralls.io/github/airbnb/streamalert?branch=master
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ boto3==1.10.7
boxsdk==2.6.1
cbapi==1.5.4
coverage==4.5.4
coveralls==1.8.2
coveralls==1.11.1
google-api-python-client==1.7.11
jmespath==0.9.4
jsonlines==1.2.0
Expand Down

0 comments on commit 54c147f

Please sign in to comment.