Skip to content

Commit 45719a2

Browse files
committed
[CI] Add github actions file
1 parent 77392b4 commit 45719a2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: run-tests
2+
on:
3+
# test cron by running it once a day at 01:00
4+
schedule:
5+
- cron: '0 1 * * *'
6+
push:
7+
branches:
8+
- master
9+
- dev
10+
pull_request:
11+
branches:
12+
- master
13+
jobs:
14+
tests:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
python-version: [3.6]
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Setup Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
- name: Install dependencies
29+
run: |
30+
python setup.py install
31+
pip install owlrl requests pytest
32+
- name: Run tests
33+
run: pytest

0 commit comments

Comments
 (0)