Skip to content

Commit dc47505

Browse files
committed
Switch to Github Actions
Signed-off-by: Dustin Ingram <[email protected]>
1 parent eb109fb commit dc47505

File tree

6 files changed

+42
-44
lines changed

6 files changed

+42
-44
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: 3.8
15+
- name: Install tox
16+
run: python -m pip install tox
17+
- name: Run linting
18+
run: python -m tox -e lint
19+
20+
test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
python: [3.6, 3.7, 3.8]
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup Python
28+
uses: actions/setup-python@v1
29+
with:
30+
python-version: ${{ matrix.python }}
31+
- name: Install tox
32+
run: python -m pip install tox
33+
- name: Run tests
34+
run: python -m tox -e py # Run tox using the version of Python in `PATH`

circle.yml

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

requirements.txt

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

tox.ini

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
[tox]
2-
envlist = py{3.6,3.7,3.8},pep8
2+
envlist = py{36,37,38},lint
33
skipsdist = True
44

55
[testenv]
6-
basepython =
7-
pep8: python3
8-
py3.6: python3.6
9-
py3.7: python3.7
10-
6+
description = run tests with {basepython}
117
setenv = VIRTUAL_ENV={envdir}
128
usedevelop = True
139
install_command = pip install -U {opts} {packages}
14-
deps = -r{toxinidir}/test-requirements.txt
15-
-r{toxinidir}/docs-requirements.txt
10+
deps = -r{toxinidir}/requirements/test.txt
11+
-r{toxinidir}/requirements/docs.txt
1612
commands = find . -type f -name "*.pyc" -delete
1713
whitelist_externals = find
1814
rm
1915
go
2016
docker
21-
[testenv:pep8]
17+
[testenv:lint]
2218
basepython = python3.8
2319
commands =
2420
flake8
2521

2622
[testenv:venv]
2723
commands = {posargs}
2824

29-
[testenv:py3.6]
25+
[testenv:py36]
3026
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
3127

32-
[testenv:py3.7]
28+
[testenv:py37]
3329
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
3430

35-
[testenv:py3.8]
31+
[testenv:py38]
3632
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
3733

3834
[flake8]

0 commit comments

Comments
 (0)