Do not allow external links in HDF5 files. #1110
Workflow file for this run
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: Keras TPU Tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| types: [unlabeled] | |
| release: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-in-container: | |
| name: Run tests on TPU | |
| runs-on: linux-x86-ct6e-44-1tpu | |
| # Only run on pushes to master, releases or "kokoro:force-run" unlabel | |
| if: | | |
| github.event_name == 'push' || | |
| github.event_name == 'release' || | |
| (github.event_name == 'pull_request' && github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run') | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| backend: [jax] | |
| container: | |
| image: python:3.11-slim | |
| options: --privileged --network host | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6.0.1 | |
| - name: Install Dependencies | |
| run: pip install --no-cache-dir -r requirements-${{ matrix.backend }}-tpu.txt | |
| - name: Set Keras Backend | |
| run: echo "KERAS_BACKEND=jax" >> $GITHUB_ENV | |
| - name: Verify JAX Installation | |
| run: python3 -c "import jax; print('JAX devices:', jax.devices()); assert jax.default_backend() == 'tpu'" | |
| - name: Run Tests | |
| run: pytest keras --ignore keras/src/applications --cov=keras --cov-config=pyproject.toml |