fix(openai): support Azure AD auth with OpenAI 3.8 #333
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
| # Ensures version numbers in pyproject.toml and _version.py stay in sync. | |
| # | |
| # (Prevents releases with mismatched version numbers) | |
| name: "Check Version Equality" | |
| on: | |
| pull_request: | |
| paths: | |
| - "libs/core/pyproject.toml" | |
| - "libs/core/langchain_core/version.py" | |
| - "libs/langchain_v1/pyproject.toml" | |
| - "libs/langchain_v1/langchain/__init__.py" | |
| - "libs/partners/*/pyproject.toml" | |
| - "libs/partners/**/_version.py" | |
| permissions: | |
| contents: read | |
| jobs: | |
| check_version_equality: | |
| if: github.repository_owner == 'langchain-ai' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 | |
| - uses: astral-sh/setup-uv@0ca8f610542aa7f4acaf39e65cf4eb3c35091883 # v7 | |
| with: | |
| python-version: "3.12" | |
| - name: "Verify pyproject.toml & version files match" | |
| run: | | |
| FAILED=0 | |
| for dir in libs/core libs/langchain_v1 libs/partners/*; do | |
| [ -f "$dir/Makefile" ] || continue | |
| if grep -q '^check_version:' "$dir/Makefile"; then | |
| echo "--- $dir ---" | |
| make -C "$dir" check_version || FAILED=1 | |
| elif find "$dir" -maxdepth 2 -name '_version.py' -not -path '*/tests/*' \ | |
| | grep -q .; then | |
| # A package ships a _version.py but has no way to verify it stays | |
| # in sync with pyproject.toml. Don't let it pass unchecked. | |
| echo "--- $dir ---" | |
| echo "Error: $dir has a _version.py but no 'check_version' Makefile target" | |
| FAILED=1 | |
| fi | |
| done | |
| if [ "$FAILED" -ne 0 ]; then | |
| echo "" | |
| echo "One or more version checks failed!" | |
| exit 1 | |
| fi |