-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into thedebugger/azp-param
- Loading branch information
Showing
78 changed files
with
2,897 additions
and
917 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ coverage: | |
default: | ||
enabled: true | ||
if_no_uploads: error | ||
comment: false | ||
comment: false |
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 @@ | ||
[flake8] | ||
ignore = E501 F401 | ||
max-line-length = 88 | ||
max-line-length = 88 |
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
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,86 @@ | ||
name: Build and Test | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
authorize: | ||
name: Authorize | ||
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: true | ||
|
||
run: | ||
needs: authorize # Require approval before running on forked pull requests | ||
|
||
name: Run | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
BUBBLEWRAP_ARGUMENTS: | | ||
--unshare-all \ | ||
--clearenv \ | ||
--ro-bind / / \ | ||
--bind ${{ github.workspace }} ${{ github.workspace }} \ | ||
--tmpfs $HOME \ | ||
--tmpfs /tmp \ | ||
--tmpfs /var \ | ||
--dev /dev \ | ||
--proc /proc \ | ||
--die-with-parent \ | ||
--new-session \ | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
|
||
- name: Configure dependencies | ||
run: | | ||
sudo apt install bubblewrap | ||
pip install --user --upgrade pip | ||
pip install --user pipx | ||
pipx ensurepath | ||
pipx install poetry==1.4.2 | ||
pipx install poethepoet==0.19.0 | ||
poetry config virtualenvs.in-project true | ||
poetry install --with dev | ||
- name: Run tests | ||
run: | | ||
poetry run poe test | ||
# bwrap ${{ env.BUBBLEWRAP_ARGUMENTS }} bash | ||
|
||
- name: Run lint | ||
run: | | ||
poetry run poe lint:install | ||
poetry run poe lint | ||
# bwrap ${{ env.BUBBLEWRAP_ARGUMENTS }} bash | ||
|
||
- if: ${{ matrix.python-version == '3.10' }} | ||
name: Upload coverage | ||
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # pin@3.1.4 | ||
|
||
|
||
# - if: ${{ matrix.python-version == '3.10' }} | ||
# name: Build documentation | ||
# run: | | ||
# pipx install sphinx && pipx inject sphinx pyjwt cryptography sphinx-mdinclude sphinx-rtd-theme sphinx-autodoc-typehints && sphinx-build ./docs/source ./docs/build --keep-going -n -a -b 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
permissions: | ||
contents: read | ||
id-token: write # Required for trusted publishing to PyPI | ||
|
||
jobs: | ||
publish-pypi: | ||
name: "PyPI" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Remove artifacts | ||
run: rm -rf build/ dist/ auth0_python.egg-info | ||
|
||
- name: Package release | ||
run: python setup.py sdist bdist_wheel --universal | ||
|
||
- name: Publish release | ||
uses: pypa/gh-action-pypi-publish@release/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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ docs/build/ | |
|
||
# IDEA | ||
.idea/ | ||
*.iml | ||
*.iml | ||
|
||
# VSCode | ||
.vscode/ | ||
|
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,19 +1,37 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
rev: v3.3.2 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
args: [--keep-runtime-typing] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
additional_dependencies: ['click<8.1.0'] | ||
|
||
- repo: https://github.com/python-poetry/poetry | ||
rev: 1.4.2 | ||
hooks: | ||
- id: poetry-check | ||
- id: poetry-lock | ||
- id: poetry-export | ||
args: ["--with", "dev", "--without-hashes", "--format", "requirements.txt", "--output", "requirements.txt"] |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ sphinx: | |
python: | ||
version: "3.7" | ||
install: | ||
- requirements: docs/requirements.txt | ||
- requirements: requirements.txt |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"auth0/__init__.py": [] | ||
}, | ||
"prefixVersion": false | ||
} | ||
} |
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.