Skip to content

Commit a61b3de

Browse files
nyukhalovalistair23
authored andcommitted
Define CI pipeline using Github Actions
1 parent fe6f472 commit a61b3de

3 files changed

Lines changed: 36 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches: 'master'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-18.04
12+
strategy:
13+
max-parallel: 4
14+
fail-fast: false
15+
matrix:
16+
python-version: ['3.5', '3.6', '3.7', '3.8']
17+
steps:
18+
- uses: actions/checkout@v1
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+
python -m pip install --upgrade pip
26+
python -m pip install tox tox-gh-actions
27+
- name: Test with tox
28+
run: tox

.travis.yml

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

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
[tox]
22
envlist =
33
check{36,38},
4-
py{34,35,36,37,38},
4+
py{35,36,37,38},
55
coverage
66

7+
[gh-actions]
8+
python =
9+
3.5: py35
10+
3.6: py36
11+
3.7: py37
12+
3.8: py38
13+
714
[testenv]
815
usedevelop = true
916
setenv =

0 commit comments

Comments
 (0)