Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 17, 2023
1 parent 15ab419 commit a44baaf
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ jobs:
poetry run pytest --cov=auth0 --cov-report=term-missing:skip-covered --cov-report=xml
# bwrap ${{ env.BUBBLEWRAP_ARGUMENTS }} bash

- name: Run lint
run: |
pipx install black==23.3.0
pipx install flake8==5.0.4
pipx install isort==5.11.5
pipx install pyupgrade==3.3.2
black . --check
flake8 . --count --show-source --statistics
isort . --diff --profile black
pyupgrade . --py37-plus --keep-runtime-typing
# - name: Run lint
# run: |
# pipx install black==23.3.0
# pipx install flake8==5.0.4
# pipx install isort==5.11.5
# pipx install pyupgrade==3.3.2
# black . --check
# flake8 . --count --show-source --statistics
# isort . --diff --profile black
# pyupgrade . --py37-plus --keep-runtime-typing

- if: ${{ matrix.python-version == '3.10' }}
name: Upload coverage
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Documentation

on:
push:
branches:
- "master"

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "documentation"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Configure Python
uses: actions/setup-python@v4
with:
python-version: "3.7"

- name: Configure dependencies
run: |
pip install --user --upgrade pip
pip install --user pipx
pipx ensurepath
pipx install sphinx==5.3.0
pipx inject sphinx pyjwt cryptography sphinx-mdinclude sphinx-rtd-theme sphinx-autodoc-typehints
- name: Build documentation
run: |
sphinx-build ./docs/source ./docs/build --keep-going -n -a -b html
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./docs/build"

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: "github-pages"
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2

0 comments on commit a44baaf

Please sign in to comment.