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' of https://github.com/oauthlib/oauthlib
- Loading branch information
Showing
6 changed files
with
95 additions
and
75 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
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,41 @@ | ||
name: Python Tests | ||
run-name: Run Tests by ${{ github.actor }} | ||
on: [push] | ||
jobs: | ||
tests: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
strategy: | ||
matrix: | ||
python: ["3.8", "3.9", "3.10", "3.11"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install prereq | ||
run: pip install tox coveralls | ||
- name: Run python tests | ||
run: tox -e ${{ matrix.python }} | ||
- name: Coveralls | ||
run: coveralls | ||
docs: | ||
strategy: | ||
matrix: | ||
toxenv: ["docs", "readme"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt install -y graphviz | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install prereq | ||
run: pip install tox | ||
- name: Run python tests | ||
run: tox -e ${{ matrix.toxenv }} |
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,32 @@ | ||
name: Production deploy | ||
on: | ||
workflow_run: | ||
workflows: ["Python Tests"] | ||
types: | ||
- completed | ||
jobs: | ||
pypi-publish: | ||
if: | | ||
${{ github.event.workflow_run.conclusion == 'success' }} && | ||
${{ github.ref_type == 'tag' }} | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/oauthlib | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install prereq | ||
run: pip install wheel | ||
- name: Build python package | ||
run: python setup.py build | ||
- name: Package python package | ||
run: python setup.py sdist bdist_wheel | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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
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