Skip to content

Commit d5443b7

Browse files
committed
Switch to GH actions in favor of travis-ci
1 parent f1dadcb commit d5443b7

File tree

4 files changed

+55
-19
lines changed

4 files changed

+55
-19
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PyPi Release
2+
3+
on: [release]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-python@v1
12+
- name: Install dependencies
13+
run: python -m pip install --upgrade pip setuptools wheel twine
14+
- name: Build dist packages
15+
run: python setup.py sdist bdist_wheel
16+
- name: Upload packages
17+
run: python -m twine upload dist/*
18+
env:
19+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
20+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [3.5, 3.6, 3.7]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- run: python -m pip install --upgrade pip setuptools codecov
21+
- run: python setup.py develop
22+
- run: relint **
23+
- run: coverage run --source=relint setup.py test
24+
- run: codecov
25+
env:
26+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

.travis.yml

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

setup.cfg

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ keywords =
2323

2424
[options]
2525
install_requires = PyYAML
26-
setup_requires = setuptools_scm
26+
setup_requires =
27+
setuptools_scm
28+
pytest-runner
29+
tests_require =
30+
pytest
31+
pytest-cov
2732
py_modules = relint
2833

2934
[options.entry_points]
@@ -33,6 +38,9 @@ console_scripts =
3338
[bdist_wheel]
3439
universal = 1
3540

41+
[aliases]
42+
test = pytest
43+
3644
[flake8]
3745
max_line_length = 88
3846

0 commit comments

Comments
 (0)