Repository navigation
Bump oauthlib from 3.3.1 to 4.0.0 #881
Workflow file for this run
This file contains hidden or 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
| name: PR validation | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| changelog: | |
| name: CHANGELOG updated | |
| runs-on: ubuntu-latest | |
| if: >- | |
| github.event_name == 'pull_request' && | |
| !contains(github.event.pull_request.labels.*.name, 'skip-changelog') | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Verify CHANGELOG.md was updated | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| run: | | |
| if git diff --name-only "$BASE_SHA...$HEAD_SHA" | grep -qx 'CHANGELOG.md'; then | |
| echo "CHANGELOG.md was updated." | |
| else | |
| echo "::error::CHANGELOG.md was not updated in this PR." | |
| echo "Add an entry to CHANGELOG.md, or apply the 'skip-changelog' label if this change does not warrant one." | |
| exit 1 | |
| fi | |
| quality: | |
| name: Black, Pylint, and Mypy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install tox | |
| run: python -m pip install --upgrade pip tox | |
| - name: Check formatting with Black | |
| run: tox -e black | |
| - name: Lint with Pylint | |
| run: tox -e pylint | |
| - name: Typecheck with Mypy | |
| run: tox -e mypy | |
| docs: | |
| name: Build documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install tox | |
| run: python -m pip install --upgrade pip tox | |
| - name: Build docs | |
| run: tox -e docs | |
| tests: | |
| name: Pytest (${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - python-version: "3.10" | |
| tox-env: pytest-py310 | |
| - python-version: "3.11" | |
| tox-env: pytest-py311 | |
| - python-version: "3.12" | |
| tox-env: pytest-py312 | |
| - python-version: "3.13" | |
| tox-env: pytest-py313 | |
| - python-version: "3.14" | |
| tox-env: pytest-py314 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install tox | |
| run: python -m pip install --upgrade pip tox | |
| - name: Run tests | |
| run: tox -e ${{ matrix.tox-env }} | |
| build: | |
| name: Build wheel | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Detect minimum Python version | |
| id: python-version | |
| run: | | |
| version=$(python3 -c " | |
| import tomllib, re | |
| with open('pyproject.toml', 'rb') as f: | |
| data = tomllib.load(f) | |
| req = data['project']['requires-python'] | |
| print(re.search(r'[\d.]+', req).group()) | |
| ") | |
| echo "version=$version" >> "$GITHUB_OUTPUT" | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ steps.python-version.outputs.version }} | |
| - name: Install build | |
| run: python -m pip install --upgrade pip build | |
| - name: Build wheel and sdist | |
| run: python -m build | |
| - name: Upload wheel | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: dist | |
| path: dist/ | |
| integration-tests: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install tox | |
| run: python -m pip install --upgrade pip tox | |
| - name: Run integration tests | |
| env: | |
| AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} | |
| AZURE_OPENAI_ENDPOINT: ${{ vars.AZURE_OPENAI_ENDPOINT }} | |
| AZURE_OPENAI_DEPLOYMENT: ${{ vars.AZURE_OPENAI_DEPLOYMENT }} | |
| AZURE_OPENAI_API_VERSION: ${{ vars.AZURE_OPENAI_API_VERSION }} | |
| run: | | |
| python -m pip install -r dev_requirements.txt | |
| python -m pip install -e .[langchain,agent-framework] | |
| python -m pytest -v tests/a365/integration |