|
60 | 60 | command -v fission && fission support dump |
61 | 61 | - name: Archive fission dump |
62 | 62 | if: ${{ failure() }} |
63 | | - uses: actions/upload-artifact@v2 |
| 63 | + uses: actions/upload-artifact@v4 |
64 | 64 | with: |
65 | 65 | name: fission-dump |
66 | 66 | path: fission-dump/*.zip |
@@ -101,7 +101,7 @@ jobs: |
101 | 101 | command -v fission && fission support dump |
102 | 102 | - name: Archive fission dump |
103 | 103 | if: ${{ failure() }} |
104 | | - uses: actions/upload-artifact@v2 |
| 104 | + uses: actions/upload-artifact@v4 |
105 | 105 | with: |
106 | 106 | name: fission-dump |
107 | 107 | path: fission-dump/*.zip |
@@ -191,7 +191,7 @@ jobs: |
191 | 191 | command -v fission && fission support dump |
192 | 192 | - name: Archive fission dump |
193 | 193 | if: ${{ failure() }} |
194 | | - uses: actions/upload-artifact@v2 |
| 194 | + uses: actions/upload-artifact@v4 |
195 | 195 | with: |
196 | 196 | name: fission-dump |
197 | 197 | path: fission-dump/*.zip |
@@ -262,7 +262,7 @@ jobs: |
262 | 262 | python: |
263 | 263 | runs-on: ubuntu-latest |
264 | 264 | needs: check |
265 | | - if: contains( needs.check.outputs.packages, 'python' ) |
| 265 | + if: contains( needs.check.outputs, 'python' ) |
266 | 266 | steps: |
267 | 267 | - name: Checkout sources |
268 | 268 | uses: actions/checkout@v2 |
@@ -312,7 +312,62 @@ jobs: |
312 | 312 | command -v fission && fission support dump |
313 | 313 | - name: Archive fission dump |
314 | 314 | if: ${{ failure() }} |
315 | | - uses: actions/upload-artifact@v2 |
| 315 | + uses: actions/upload-artifact@v4 |
| 316 | + with: |
| 317 | + name: fission-dump |
| 318 | + path: fission-dump/*.zip |
| 319 | + retention-days: 5 |
| 320 | + python-fastapi: |
| 321 | + runs-on: ubuntu-latest |
| 322 | + needs: check |
| 323 | + if: contains( needs.check.outputs.packages, 'python-fastapi' ) |
| 324 | + steps: |
| 325 | + - name: Checkout sources |
| 326 | + uses: actions/checkout@v2 |
| 327 | + - uses: actions/setup-python@v2 |
| 328 | + with: |
| 329 | + python-version: '3.11' |
| 330 | + - name: Unit test |
| 331 | + run: | |
| 332 | + pip3 install virtualenv |
| 333 | + sudo apt-get update -y && sudo apt-get install -y libev-dev |
| 334 | + pushd python-fastapi/ |
| 335 | + export USERFUNCVOL=/tmp |
| 336 | + export RUNTIME_PORT=8882 |
| 337 | + ./tests/local_test.sh |
| 338 | + unset RUNTIME_PORT |
| 339 | + popd |
| 340 | + - name: Helm |
| 341 | + uses: Azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 |
| 342 | + with: |
| 343 | + version: v3.13.0 |
| 344 | + - name: Kind Clutser |
| 345 | + |
| 346 | + with: |
| 347 | + image: kindest/node:v1.25.16 |
| 348 | + version: v0.23.0 |
| 349 | + config: kind.yaml |
| 350 | + - name: Base Setup |
| 351 | + run: | |
| 352 | + make verify-kind-cluster |
| 353 | + make install-fission-cli |
| 354 | + make install-skaffold |
| 355 | + make create-crds |
| 356 | + - name: Fission and Test images |
| 357 | + run: | |
| 358 | + SKAFFOLD_PROFILE=python-fastapi make skaffold-run |
| 359 | + make python-fastapi-test-images |
| 360 | + make router-port-forward |
| 361 | + - name: python-fastapi-tests |
| 362 | + run: | |
| 363 | + ./test_utils/run_test.sh ./python-fastapi/tests/test_python_fastapi_env.sh |
| 364 | + - name: Collect Fission Dump |
| 365 | + if: ${{ always() }} |
| 366 | + run: | |
| 367 | + command -v fission && fission support dump |
| 368 | + - name: Archive fission dump |
| 369 | + if: ${{ failure() }} |
| 370 | + uses: actions/upload-artifact@v4 |
316 | 371 | with: |
317 | 372 | name: fission-dump |
318 | 373 | path: fission-dump/*.zip |
|
0 commit comments