Bump pygments from 2.19.2 to 2.20.0 #962
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
| # used when creating a pull request | |
| # this step runs the tests, coding style and validates that the version is | |
| # release and greater than the version of master and pypi | |
| name: Pre Release | |
| on: | |
| pull_request: | |
| types: | |
| [opened, synchronize] | |
| branches: | |
| - master | |
| env: | |
| LIBRARY_NAME: "splight-lib" | |
| jobs: | |
| run_tests_and_coding_style: | |
| runs-on: ubuntu-latest | |
| name: Verify library tests and coding style | |
| steps: | |
| - name: Checkout to feature branch | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3.1.4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install latest uv and set Python version | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| - name: Install dependencies | |
| run: | | |
| uv sync | |
| - name: Run tests | |
| run: make test | |
| verify_version: | |
| runs-on: ubuntu-latest | |
| name: Verify version is a valid release version and is higher than last PyPi package and master version | |
| steps: | |
| # get master version | |
| - name: Checkout to master | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| with: | |
| ref: master | |
| - name: Get version from master branch | |
| run: echo "MASTER_VERSION=$(grep version pyproject.toml | head -1 | awk '{print $3}' | tr -d '\"')" >> "$GITHUB_ENV" | |
| # get current branch version | |
| - name: Checkout to feature branch | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3.1.4 | |
| with: | |
| python-version: "3.11" | |
| - name: Get version from feature branch | |
| run: echo "CURRENT_VERSION=$(grep version pyproject.toml | head -1 | awk '{print $3}' | tr -d '\"')" >> "$GITHUB_ENV" | |
| # validate versions | |
| - name: Verify version is a valid release version | |
| run: python .github/workflows/scripts/check_release_version.py ${{ env.CURRENT_VERSION }} | |
| - name: Verify version is greater than last pypi uploaded version | |
| run: python .github/workflows/scripts/check_pypi_version.py ${{ env.CURRENT_VERSION }} $LIBRARY_NAME | |
| - name: Verify version is greater than master version | |
| run: python .github/workflows/scripts/check_master_version.py ${{ env.MASTER_VERSION }} ${{ env.CURRENT_VERSION }} |