Skip to content

Commit a31fc6a

Browse files
authored
Create run-tests.yml
1 parent 584c7e2 commit a31fc6a

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
python-version: ['2.7', '3.6', '3.7', '3.8']
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install flake8 pytest
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
- name: Test Tasks
30+
run: python tests/unit/testTask.py
31+
- name: Test Jobs
32+
run: python tests/unit/testJob.py
33+
- name: Test Webhooks
34+
run: python tests/unit/testWebhookSignature.py

0 commit comments

Comments
 (0)