Skip to content

Commit 2413665

Browse files
authored
GitHub Actions (cloudevents#29)
* Switch to Github Actions Signed-off-by: Dustin Ingram <di@users.noreply.github.com> * Add support for Python 3.8 Signed-off-by: Dustin Ingram <di@users.noreply.github.com>
1 parent ec0ae88 commit 2413665

File tree

7 files changed

+46
-43
lines changed

7 files changed

+46
-43
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.
File renamed without changes.
File renamed without changes.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ classifier =
1515
Programming Language :: Python :: 3
1616
Programming Language :: Python :: 3.6
1717
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
1819

1920
[files]
2021
packages =

tox.ini

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
[tox]
2-
envlist = py{3.6,3.7},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]
18+
basepython = python3.8
2219
commands =
2320
flake8
2421

2522
[testenv:venv]
2623
commands = {posargs}
2724

28-
[testenv:py3.6]
25+
[testenv:py36]
26+
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
27+
28+
[testenv:py37]
2929
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
3030

31-
[testenv:py3.7]
31+
[testenv:py38]
3232
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
3333

3434
[flake8]

0 commit comments

Comments
 (0)