Skip to content

Commit 94fe03e

Browse files
switch to Github actions (#250)
1 parent 575d3f7 commit 94fe03e

3 files changed

Lines changed: 58 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Repository checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: "3.6"
22+
23+
- name: Install dependencies
24+
run: |
25+
pip install --upgrade pip tox
26+
27+
- name: Lint
28+
run: |
29+
tox -e lint
30+
31+
test:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
python-version:
36+
- "3.6"
37+
- "3.7"
38+
- "3.8"
39+
steps:
40+
- name: Repository checkout
41+
uses: actions/checkout@v2
42+
43+
- name: Set up Python
44+
uses: actions/setup-python@v2
45+
with:
46+
python-version: ${{ matrix.python-version }}
47+
48+
- name: Install dependencies
49+
run: |
50+
pip install --upgrade pip tox codecov
51+
52+
- name: Test
53+
run: |
54+
tox -e py
55+
codecov

.travis.yml

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

README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Python client API library made especially for [MAAS][].
44

5-
[![Build Status](https://travis-ci.org/maas/python-libmaas.svg?branch=master)](https://travis-ci.org/maas/python-libmaas)
5+
[![CI tests](https://github.com/maas/python-libmaas/workflows/CI%20tests/badge.svg)](https://github.com/maas/python-libmaas/actions?query=workflow%3A%22CI+tests%22)
66
[![codecov.io](https://codecov.io/github/maas/python-libmaas/coverage.svg?branch=master)](https://codecov.io/github/maas/python-libmaas?branch=master)
77

88

@@ -11,9 +11,9 @@ Python client API library made especially for [MAAS][].
1111
All the dependencies are declared in `setup.py` so this can be installed
1212
with [pip](https://pip.pypa.io/). Python 3.5+ is required.
1313

14-
When working from trunk it can be helpful to use `virtualenv`:
14+
When working from master it can be helpful to use a virtualenv:
1515

16-
$ virtualenv --python=python3 amc && source amc/bin/activate
16+
$ python3 -m venv ve && source ve/bin/activate
1717
$ pip install git+https://github.com/maas/python-libmaas.git
1818
$ maas --help
1919

0 commit comments

Comments
 (0)