Skip to content

Commit e8f49da

Browse files
committed
Switch to Github Actions
1 parent ec0ae88 commit e8f49da

File tree

6 files changed

+42
-43
lines changed

6 files changed

+42
-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.

tox.ini

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

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

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

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

3431
[flake8]

0 commit comments

Comments
 (0)