Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions #1231

Merged
merged 4 commits into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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