-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add github action workflow * fix flake8 error * remove travis.yml * typo * update tox
- Loading branch information
Showing
6 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- run: python -m pip install --upgrade pip wheel tox | ||
- run: tox -e flake8 | ||
tests: | ||
name: tests | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- run: python -m pip install --upgrade pip wheel | ||
- run: pip install tox tox-gh-actions | ||
- run: tox | ||
coverage: | ||
name: coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- run: python -m pip install --upgrade pip wheel | ||
- run: pip install tox codecov | ||
- run: tox -e covarage | ||
- run: codecov |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
[tox] | ||
envlist = py27, py35, py36, py37, py38 | ||
envlist = py27, py35, py36, py37, py38, py39 | ||
skip_missing_interpreters = true | ||
skipsdist = true | ||
|
||
[gh-actions] | ||
python = | ||
2.7: py27 | ||
3.5: py35 | ||
3.6: py36 | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
|
||
[testenv] | ||
deps = | ||
pytest | ||
flask-wtf | ||
flask-sqlalchemy | ||
commands = | ||
python setup.py test | ||
|
||
[testenv:coverage] | ||
basepython = python2.7 | ||
deps = | ||
pytest | ||
coverage | ||
flask-wtf | ||
flask-sqlalchemy | ||
commands = | ||
coverage run --source=flask_bootstrap setup.py test | ||
coverage report | ||
coverage html | ||
|
||
[testenv:flake8] | ||
basepython = python2.7 | ||
deps = | ||
flake8 | ||
commands = | ||
flake8 flask_bootstrap tests | ||
|
||
[testenv:covarage] | ||
deps = | ||
flake8 | ||
pytest | ||
pytest-cov | ||
flask-wtf | ||
flask-sqlalchemy | ||
commands = | ||
pytest --cov=flask_bootstrap --cov-branch |