|
44 | 44 | docker: ${{ steps.changes.outputs.docker }} |
45 | 45 | helm: ${{ steps.changes.outputs.helm }} |
46 | 46 | cpu-smoke: ${{ steps.changes.outputs.cpu-smoke }} |
| 47 | + auth-idp: ${{ steps.changes.outputs.auth-idp }} |
47 | 48 | steps: |
48 | 49 | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
49 | 50 | - uses: ./.github/actions/changes |
@@ -101,7 +102,8 @@ jobs: |
101 | 102 | if: > |
102 | 103 | !cancelled() && ( |
103 | 104 | github.event_name == 'workflow_dispatch' || |
104 | | - needs.changes.outputs.cpu-smoke == 'true' |
| 105 | + needs.changes.outputs.cpu-smoke == 'true' || |
| 106 | + needs.changes.outputs.auth-idp == 'true' |
105 | 107 | ) |
106 | 108 | runs-on: ubuntu-latest |
107 | 109 | timeout-minutes: 90 |
@@ -908,6 +910,59 @@ jobs: |
908 | 910 | coverage.xml |
909 | 911 | coverage.json |
910 | 912 |
|
| 913 | + python-auth-idp-test: |
| 914 | + name: Python auth-idp tests |
| 915 | + needs: [changes, policy-wasm, build-cpu-smoke-images] |
| 916 | + if: > |
| 917 | + !cancelled() && ( |
| 918 | + github.event_name == 'workflow_dispatch' || |
| 919 | + needs.changes.outputs.cpu-smoke == 'true' || |
| 920 | + needs.changes.outputs.auth-idp == 'true' |
| 921 | + ) && |
| 922 | + needs.build-cpu-smoke-images.result == 'success' |
| 923 | + runs-on: ubuntu-latest |
| 924 | + permissions: |
| 925 | + contents: read |
| 926 | + packages: read |
| 927 | + steps: |
| 928 | + - name: Checkout code |
| 929 | + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 930 | + - name: Free disk space |
| 931 | + uses: ./.github/actions/free-disk-space |
| 932 | + - name: Download policy WASM |
| 933 | + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
| 934 | + with: |
| 935 | + name: policy-wasm |
| 936 | + path: services/core/auth/src/nmp/core/auth/assets |
| 937 | + - name: Install uv |
| 938 | + uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 |
| 939 | + with: |
| 940 | + python-version: "3.11" |
| 941 | + enable-cache: true |
| 942 | + cache-dependency-glob: uv.lock |
| 943 | + - name: Log in to GHCR |
| 944 | + if: needs.build-cpu-smoke-images.outputs.publish_images == 'true' |
| 945 | + uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 |
| 946 | + with: |
| 947 | + registry: ghcr.io |
| 948 | + username: ${{ github.actor }} |
| 949 | + password: ${{ github.token }} |
| 950 | + - name: Run auth-idp tests |
| 951 | + run: make test-auth-idp |
| 952 | + env: |
| 953 | + _TYPER_FORCE_DISABLE_TERMINAL: "1" |
| 954 | + E2E_SERVICES_LOG_DIR: ${{ runner.temp }}/e2e-services-logs |
| 955 | + IMAGE_REGISTRY: ${{ needs.build-cpu-smoke-images.outputs.image_registry }} |
| 956 | + BAKE_TAG: ${{ needs.build-cpu-smoke-images.outputs.image_tag }} |
| 957 | + - name: Upload test artifacts |
| 958 | + if: always() |
| 959 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| 960 | + with: |
| 961 | + name: python-auth-idp-test-results |
| 962 | + retention-days: 30 |
| 963 | + path: | |
| 964 | + ${{ runner.temp }}/e2e-services-logs/ |
| 965 | +
|
911 | 966 | # Build wheels for all packages × python versions. Downstream jobs |
912 | 967 | # (wheel-test, python-e2e-test) download these artifacts instead |
913 | 968 | # of rebuilding. |
|
0 commit comments