[Snyk] Security upgrade requests from 2.31.0 to 2.32.4 #96
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: kfp-kubernetes library tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - stable | |
| - 'rhoai-*' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/kfp-kubernetes-library-test.yml' | |
| - 'sdk/python/**' | |
| - 'api/v2alpha1/**' | |
| - 'kubernetes_platform/**' | |
| - '!**/*.md' | |
| - '!**/OWNERS' | |
| jobs: | |
| kfp-kubernetes-library-test: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python: [ | |
| { 'version': '3.9' }, | |
| { 'version': '3.10' }, | |
| { 'version': '3.11' }, | |
| { 'version': '3.12' }, | |
| { 'version': '3.13' } | |
| ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{matrix.python.version}} | |
| - name: apt-get update | |
| run: sudo apt-get update | |
| - name: Install protobuf-compiler | |
| run: sudo apt-get install protobuf-compiler -y | |
| - name: Install setuptools | |
| run: | | |
| pip3 install setuptools | |
| pip3 freeze | |
| - name: Install Wheel | |
| run: pip3 install wheel==0.42.0 | |
| - name: Install protobuf | |
| run: pip3 install protobuf==4.25.3 | |
| - name: Generate API proto files | |
| working-directory: ./api | |
| run: make clean python | |
| - name: Install kfp-pipeline-spec from source | |
| run: | | |
| python3 -m pip install api/v2alpha1/python | |
| - name: Install kfp-sdk from source | |
| run: | | |
| python3 -m pip install sdk/python | |
| - name: Generate kfp-kubernetes proto files from source | |
| working-directory: ./kubernetes_platform | |
| run: make clean python | |
| - name: Install kfp-kubernetes from source | |
| run: | | |
| pip install -e ./kubernetes_platform/python[dev] | |
| - name: Run tests | |
| run: pytest ./kubernetes_platform/python/test -n auto |