Skip to content

Commit eae6730

Browse files
committed
replace drone with GH workflow action
Signed-off-by: Marques Johansson <[email protected]>
1 parent 145bfa2 commit eae6730

File tree

3 files changed

+58
-22
lines changed

3 files changed

+58
-22
lines changed

.drone.yml

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

.github/workflows/test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Python package
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version:
13+
- 3.8
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- id: fmt_and_lint
22+
run: |
23+
pip install black==19.3b0 pylama
24+
black --check --diff .
25+
pylama packet test setup.py
26+
27+
test:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
python-version:
32+
- 2.7
33+
- 3.6
34+
- 3.7
35+
- 3.8
36+
- 3.9
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Set up Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v2
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
- id: test
45+
run: |
46+
python -m pip install --upgrade setuptools pip wheel
47+
pip install tox tox-gh-actions
48+
tox

tox.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
# SPDX-License-Identifier: LGPL-3.0-only
22

33
[tox]
4-
envlist = py27,py34,py35,py36,py37
4+
5+
envlist = py27,py36,py37,py38,py39
56
skip_missing_interpreters=True
67

8+
[gh-actions]
9+
python =
10+
2.7: py27
11+
3.6: py36
12+
3.7: py37
13+
3.8: py38, mypy
14+
3.9: py39
15+
716
[testenv]
817
setenv =
918
PACKET_AUTH_TOKEN = {env:PACKET_AUTH_TOKEN:}

0 commit comments

Comments
 (0)