File tree Expand file tree Collapse file tree 4 files changed +55
-19
lines changed Expand file tree Collapse file tree 4 files changed +55
-19
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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}}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ keywords =
2323
2424[options]
2525install_requires = PyYAML
26- setup_requires = setuptools_scm
26+ setup_requires =
27+ setuptools_scm
28+ pytest-runner
29+ tests_require =
30+ pytest
31+ pytest-cov
2732py_modules = relint
2833
2934[options.entry_points]
@@ -33,6 +38,9 @@ console_scripts =
3338[bdist_wheel]
3439universal = 1
3540
41+ [aliases]
42+ test = pytest
43+
3644[flake8]
3745max_line_length = 88
3846
You can’t perform that action at this time.
0 commit comments