-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update CI workflow with env vars - Update docs requirements & pin Sphinx version to use - Build docs with `sphinx-autobuild` at local environment - Bump pre-commit hooks - Commit `.python-version` into the repo (and update git ignore list)
- Loading branch information
1 parent
38cf321
commit 72f99cf
Showing
11 changed files
with
323 additions
and
162 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 |
---|---|---|
|
@@ -7,6 +7,13 @@ on: | |
pull_request: | ||
branches: ["master"] | ||
|
||
env: | ||
DEV_PYTHON_VERSION: "3.8" | ||
POETRY_VERSION: "1.0.8" | ||
TOX_GH_ACTIONS_VERSION: "1.2.0" | ||
TOX_VERSION: "3.15.2" | ||
TWINE_VERSION: "3.1.1" | ||
|
||
jobs: | ||
dev: | ||
name: "Verify package is installed well" | ||
|
@@ -23,12 +30,12 @@ jobs: | |
- name: "Install Python" | ||
uses: "actions/[email protected]" | ||
with: | ||
python-version: "3.8" | ||
python-version: "${{ env.DEV_PYTHON_VERSION }}" | ||
|
||
- name: "Install poetry" | ||
uses: "dschep/[email protected]" | ||
with: | ||
version: "1.0.5" | ||
version: "${{ env.POETRY_VERSION }}" | ||
|
||
- name: "Install package" | ||
run: "poetry install --no-dev" | ||
|
@@ -56,29 +63,28 @@ jobs: | |
- name: "Install poetry" | ||
uses: "dschep/[email protected]" | ||
with: | ||
version: "1.0.5" | ||
create_virtualenvs: true | ||
version: "${{ env.POETRY_VERSION }}" | ||
|
||
- name: "Install package" | ||
run: | | ||
poetry config virtualenvs.create true | ||
poetry config virtualenvs.in-project true | ||
poetry install | ||
python -m pip install tox==3.14.5 tox-gh-actions==1.1.0 | ||
python -m pip install tox==${{ env.TOX_VERSION }} tox-gh-actions==${{ env.TOX_GH_ACTIONS_VERSION }} | ||
- name: "Cache pre-commit" | ||
if: "matrix.python-version == '3.8'" | ||
uses: "actions/cache@v1.1.2" | ||
if: "matrix.python-version == 'env.DEV_PYTHON_VERSION'" | ||
uses: "actions/cache@v2.0.0" | ||
with: | ||
path: "~/.cache/pre-commit" | ||
key: "pre-commit-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}" | ||
|
||
- name: "Run pre-commit" | ||
if: "matrix.python-version == '3.8'" | ||
if: "matrix.python-version == 'env.DEV_PYTHON_VERSION'" | ||
uses: "pre-commit/[email protected]" | ||
|
||
- name: "Run tests" | ||
run: | | ||
python -m tox | ||
run: "python -m tox" | ||
|
||
package: | ||
needs: "test" | ||
|
@@ -87,28 +93,24 @@ jobs: | |
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: "actions/checkout@v2" | ||
- uses: "actions/setup-python@v1" | ||
with: | ||
python-version: "3.8" | ||
- uses: "actions/[email protected]" | ||
|
||
- name: "Install Python" | ||
uses: "actions/[email protected]" | ||
with: | ||
python-version: "3.8" | ||
python-version: "${{ env.DEV_PYTHON_VERSION }}" | ||
|
||
- name: "Install poetry" | ||
uses: "dschep/[email protected]" | ||
with: | ||
version: "1.0.5" | ||
create_virtualenvs: true | ||
version: "${{ env.POETRY_VERSION }}" | ||
|
||
- name: "Build package" | ||
run: "poetry build" | ||
|
||
- name: "Check package" | ||
run: | | ||
python -m pip install twine==3.1.1 | ||
python -m pip install twine==${{ env.TWINE_VERSION }} | ||
python -m twine check dist/* | ||
- name: "Publish package" | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.8.3 |
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,5 @@ | ||
========= | ||
ChangeLog | ||
Changelog | ||
========= | ||
|
||
1.0.0rc1 (2020-04-02) | ||
|
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,3 +1,3 @@ | ||
aiohttp | ||
sphinx | ||
Sphinx==3.0.4 | ||
sphinx_autodoc_typehints |
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
Oops, something went wrong.