Skip to content

Commit 5f0ca5c

Browse files
committed
Add Github Actions support
1 parent 19b2a2e commit 5f0ca5c

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-20.04
8+
strategy:
9+
matrix:
10+
python-version: [3.6, 3.9]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
- name: Run tests
23+
run: python monitor/test

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Monitor
22
=======
33

4-
.. image:: https://travis-ci.org/ReCodEx/monitor.svg?branch=master
5-
:target: https://travis-ci.org/ReCodEx/monitor
4+
.. image:: https://github.com/ReCodEx/monitor/workflows/CI/badge.svg
5+
:target: https://github.com/ReCodEx/monitor/actions
66

77
.. image:: http://img.shields.io/:license-mit-blue.svg
88
:target: http://badges.mit-license.org

0 commit comments

Comments
 (0)