-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed most code issues with deps update
- Loading branch information
Showing
7 changed files
with
3,003 additions
and
1,103 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,13 +1,10 @@ | ||
name: docs/gh-pages | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build-docs: | ||
name: Build docs and push to gh-pages | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
|
@@ -18,26 +15,30 @@ jobs: | |
python-version: 3.8 | ||
|
||
- name: Install poetry | ||
uses: snok/[email protected] | ||
|
||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
run: poetry install --no-interaction | ||
|
||
- name: Install pandoc | ||
run: sudo apt-get install pandoc | ||
|
||
- name: build docs | ||
run: | | ||
source $(poetry env info --path)/activate | ||
cd docs | ||
make clean | ||
make tutorials | ||
make html | ||
cd .. | ||
- name: deploy to gh-pages | ||
uses: Cecilapp/GitHub-Pages-deploy@master | ||
uses: Cecilapp/GitHub-Pages-deploy@v3 | ||
env: | ||
EMAIL: [email protected] | ||
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BUILD_DIR: docs/_build/html | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
email: [email protected] | ||
build_dir: docs/_build/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
name: build & release | ||
on: | ||
create: | ||
tags: | ||
- v* | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
|
@@ -18,19 +17,21 @@ jobs: | |
python-version: 3.8 | ||
|
||
- name: Install poetry | ||
uses: snok/[email protected] | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
run: poetry install --no-interaction | ||
|
||
- name: Build and publish to PyPI | ||
run: | | ||
poetry build | ||
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} | ||
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} | ||
publish-to-docker: | ||
name: Build Docker image and push to DockerHub | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.6, 3.7, 3.8] | ||
python: ["3.8", "3.9", "3.10", "3.11"] | ||
name: Python ${{ matrix.python }} tests | ||
steps: | ||
- name: Checkout branch | ||
|
@@ -17,14 +17,16 @@ jobs: | |
python-version: ${{ matrix.python }} | ||
|
||
- name: Install poetry | ||
uses: snok/[email protected] | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
run: poetry install --no-interaction | ||
|
||
- name: Run tests and generate coverage report | ||
run: | | ||
poetry run pytest --cov=./ --cov-report=xml | ||
poetry run pytest tests/ --cov=./ --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
|
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
Oops, something went wrong.