-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance changes made, to align the coding practices with other packages in the EBP org: - Move tests outside package - Change links in README and add contributing section - Add extras to setup.py - Add `__version__` to package and read in setup.py - Add tox.ini configuration - Add and run pre-commit configuration - Pin python to >=3.6,<4 - Pin sphinx to >=2,<4 - Add GitHub CI workflow (removed TravisCI hook) - remove built docs folder and instead build docs with RTD (and test in PRs)
- Loading branch information
1 parent
782104f
commit 6342ed3
Showing
79 changed files
with
266 additions
and
14,978 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,79 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: continuous-integration | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
|
||
pre-commit: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- uses: pre-commit/action@v2.0.0 | ||
|
||
tests: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
sphinx: [">=2,<3", ">=3,<4"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "sphinx${{ matrix.sphinx }}" | ||
pip install .[testing] | ||
- name: Run pytest | ||
run: | | ||
pytest --cov=sphinx_tabs --cov-report=xml --cov-report=term-missing | ||
- name: Upload to Codecov | ||
if: matrix.python-version == 3.7 && matrix.sphinx == '>=3,<=4' && github.repository == 'executablebooks/sphinx-tabs' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: sphinx-tabs-pytests-py3.7 | ||
flags: pytests | ||
file: ./coverage.xml | ||
fail_ci_if_error: true | ||
|
||
publish: | ||
|
||
name: Publish to PyPi | ||
needs: [pre-commit, tests] | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Build package | ||
run: | | ||
pip install wheel | ||
python setup.py sdist bdist_wheel | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@v1.1.0 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_KEY }} |
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,5 +1,11 @@ | ||
build | ||
_build | ||
dist | ||
test-output | ||
*.egg* | ||
docs/.doctrees | ||
.tox/ | ||
.vscode/ | ||
__pycache__ | ||
*.pyc | ||
.DS_Store |
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,31 @@ | ||
repos: | ||
|
||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.39" | ||
hooks: | ||
- id: check-manifest | ||
|
||
- repo: https://github.com/PyCQA/pylint | ||
rev: pylint-2.4.2 | ||
hooks: | ||
- id: pylint | ||
args: | ||
- --disable=missing-docstring,similarities,fixme | ||
additional_dependencies: | ||
- sphinx | ||
- docutils | ||
- pygments | ||
exclude: > | ||
(?x)^( | ||
setup.py| | ||
test/.*| | ||
docs/.* | ||
)$ |
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,11 @@ | ||
version: 2 | ||
|
||
python: | ||
version: 3 | ||
install: | ||
- method: pip | ||
path: . | ||
|
||
sphinx: | ||
builder: html | ||
fail_on_warning: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
exclude docs | ||
recursive-exclude docs * | ||
exclude test | ||
recursive-exclude test * | ||
exclude images | ||
recursive-exclude images * | ||
|
||
exclude .pre-commit-config.yaml | ||
exclude .readthedocs.yml | ||
exclude pylint.cfg | ||
exclude tox.ini | ||
|
||
include LICENSE | ||
include README.md | ||
include CHANGES.txt | ||
|
||
include sphinx_tabs/tabs.js | ||
include sphinx_tabs/tabs.css | ||
recursive-include sphinx_tabs/semantic-ui-2.4.1 * |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.