-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from lpfann/dev
Release 8.1.0
- Loading branch information
Showing
13 changed files
with
1,294 additions
and
822 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 |
---|---|---|
@@ -1,38 +1,61 @@ | ||
name: Deploy to PyPI | ||
name: Deploy PyPi and Docs | ||
|
||
on: | ||
release: | ||
types: [published,edited] # Only deploy when publishing github releases | ||
env: | ||
PYTHONVERSION: 3.8 | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.1 | ||
#---------------------------------------------- | ||
# check-out repo and set-up python | ||
#---------------------------------------------- | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2.0.1 | ||
- name: Set up Python ${{ env.PYTHONVERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: ${{ env.PYTHONVERSION }} | ||
#---------------------------------------------- | ||
# ----- install & configure poetry ----- | ||
#---------------------------------------------- | ||
- name: Install Poetry | ||
uses: dschep/install-poetry-action@v1.2 | ||
- name: Cache poetry venv | ||
uses: snok/install-poetry@v1.1.1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
#---------------------------------------------- | ||
# load cached venv if cache exists | ||
#---------------------------------------------- | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ~/.virtualenvs | ||
key: poetry-3.7-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
poetry-3.7-${{ hashFiles('**/poetry.lock') }} | ||
path: .venv | ||
key: venv-${{ hashFiles('**/poetry.lock') }} | ||
- name: Set Poetry config | ||
run: | | ||
poetry config virtualenvs.in-project false | ||
poetry config virtualenvs.path ~/.virtualenvs | ||
poetry config pypi-token.pypi ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} | ||
#---------------------------------------------- | ||
# install dependencies if cache does not exist | ||
#---------------------------------------------- | ||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: poetry install -v | ||
- name: Deploy using poetry | ||
run: poetry install | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
- name: Deploy PyPi | ||
run: poetry publish --build -u __token__ -p ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} | ||
|
||
- name: Run and convert notebooks into markdown | ||
run: poetry run jupyter nbconvert --to markdown docs/*.ipynb | ||
- name: Portray - Compile as HTML | ||
run: poetry run portray as_html | ||
- name: Deploy Docs to Github | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
publish_branch: gh-pages | ||
publish_dir: ./site | ||
cname: fri.lpfann.me |
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,43 +1,53 @@ | ||
name: Documentation | ||
name: Test Documentation | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'dev' | ||
pull_request: | ||
|
||
env: | ||
PYTHONVERSION: 3.8 | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.1 | ||
#---------------------------------------------- | ||
# check-out repo and set-up python | ||
#---------------------------------------------- | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2.0.1 | ||
- name: Set up Python ${{ env.PYTHONVERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: ${{ env.PYTHONVERSION }} | ||
#---------------------------------------------- | ||
# ----- install & configure poetry ----- | ||
#---------------------------------------------- | ||
- name: Install Poetry | ||
uses: dschep/install-poetry-action@v1.2 | ||
- name: Cache poetry venv | ||
uses: snok/install-poetry@v1.1.1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
#---------------------------------------------- | ||
# load cached venv if cache exists | ||
#---------------------------------------------- | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ~/.virtualenvs | ||
key: poetry-3.7-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
poetry-3.7-${{ hashFiles('**/poetry.lock') }} | ||
- name: Set Poetry config | ||
run: | | ||
poetry config virtualenvs.in-project false | ||
poetry config virtualenvs.path ~/.virtualenvs | ||
path: .venv | ||
key: venv-${{ hashFiles('**/poetry.lock') }} | ||
#---------------------------------------------- | ||
# install dependencies if cache does not exist | ||
#---------------------------------------------- | ||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: poetry install -v | ||
run: poetry install | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
- name: Run and convert notebooks into markdown | ||
run: poetry run jupyter nbconvert --to markdown docs/*.ipynb | ||
- run: poetry run portray as_html | ||
name: Portray - Compile as HTML | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
publish_branch: gh-pages | ||
publish_dir: ./site | ||
cname: fri.lpfann.me | ||
- name: Portray - Compile as HTML | ||
run: poetry run portray as_html |
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 |
---|---|---|
|
@@ -91,3 +91,4 @@ target/ | |
/.vscode/ | ||
/doc/.vscode/ | ||
/site/ | ||
fri/grouping.py |
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 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black |
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.
Oops, something went wrong.