upgraded python version. #159
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 | |
| env: | |
| PROXYGEN_CLIENT_ID: ${{ secrets.PROXYGEN_CLIENT_ID }} | |
| PROXYGEN_CLIENT_SECRET: ${{ secrets.PROXYGEN_CLIENT_SECRET }} | |
| jobs: | |
| check-version-bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout current branch | |
| uses: actions/checkout@v3 | |
| with: | |
| path: pr | |
| - name: Checkout main | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: refs/heads/main | |
| path: main | |
| - name: Extract current version | |
| id: versions | |
| run: | | |
| echo ::set-output name=current::$(grep version main/pyproject.toml | awk -F\" '{print $2}') | |
| echo ::set-output name=candidate::$(grep version pr/pyproject.toml | awk -F\" '{print $2}') | |
| - name: Install Python 3.13 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - name: Compare versions | |
| run: python pr/scripts/compare_version.py ${{ steps.versions.outputs.current }} ${{ steps.versions.outputs.candidate }} |