Skip to content

Commit a44baaf

Browse files
committed
Update workflows
1 parent 15ab419 commit a44baaf

2 files changed

Lines changed: 68 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ jobs:
6969
poetry run pytest --cov=auth0 --cov-report=term-missing:skip-covered --cov-report=xml
7070
# bwrap ${{ env.BUBBLEWRAP_ARGUMENTS }} bash
7171

72-
- name: Run lint
73-
run: |
74-
pipx install black==23.3.0
75-
pipx install flake8==5.0.4
76-
pipx install isort==5.11.5
77-
pipx install pyupgrade==3.3.2
78-
black . --check
79-
flake8 . --count --show-source --statistics
80-
isort . --diff --profile black
81-
pyupgrade . --py37-plus --keep-runtime-typing
72+
# - name: Run lint
73+
# run: |
74+
# pipx install black==23.3.0
75+
# pipx install flake8==5.0.4
76+
# pipx install isort==5.11.5
77+
# pipx install pyupgrade==3.3.2
78+
# black . --check
79+
# flake8 . --count --show-source --statistics
80+
# isort . --diff --profile black
81+
# pyupgrade . --py37-plus --keep-runtime-typing
8282

8383
- if: ${{ matrix.python-version == '3.10' }}
8484
name: Upload coverage

.github/workflows/docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "documentation"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Pages
25+
uses: actions/configure-pages@v3
26+
27+
- name: Configure Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: "3.7"
31+
32+
- name: Configure dependencies
33+
run: |
34+
pip install --user --upgrade pip
35+
pip install --user pipx
36+
pipx ensurepath
37+
pipx install sphinx==5.3.0
38+
pipx inject sphinx pyjwt cryptography sphinx-mdinclude sphinx-rtd-theme sphinx-autodoc-typehints
39+
40+
- name: Build documentation
41+
run: |
42+
sphinx-build ./docs/source ./docs/build --keep-going -n -a -b html
43+
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v2
46+
with:
47+
path: "./docs/build"
48+
49+
deploy:
50+
needs: build
51+
runs-on: ubuntu-latest
52+
environment:
53+
name: "github-pages"
54+
url: ${{ steps.deployment.outputs.page_url }}
55+
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)