Skip to content

Commit a4a98bb

Browse files
committed
Migrate to GitHub Actions
1 parent 549c98b commit a4a98bb

File tree

2 files changed

+37
-18
lines changed

2 files changed

+37
-18
lines changed

.github/workflows/ci-build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
2+
name: CI Build
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-20.04
13+
timeout-minutes: 5
14+
strategy:
15+
matrix:
16+
python-version: ['3.6', '3.7', '3.8', '3.9']
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
pip install -U pip pytest # python 2.7 requires pytest 4
26+
python setup.py install
27+
pip install flake8
28+
pip install -r requirements-dev.txt
29+
- name: Run all tests
30+
run: |
31+
python_version=`python -V`
32+
if [ ${python_version:7:3} == "3.9" ]; then
33+
flake8 slackeventsapi
34+
pytest --cov-report= --cov=slackeventsapi tests && bash <(curl -s https://codecov.io/bash)
35+
else
36+
pytest tests
37+
fi

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)