| 
59 | 59 |           if [ "${{ matrix.nnx_enabled }}" == "true" ]; then  | 
60 | 60 |             pip install --upgrade flax>=0.11.1  | 
61 | 61 |           fi  | 
 | 62 | +          pip install --no-deps tf_keras==2.18.0  | 
62 | 63 |           pip uninstall -y keras keras-nightly  | 
63 | 64 |           pip install -e "." --progress-bar off --upgrade  | 
64 |  | -      - name: Test applications with pytest  | 
65 |  | -        if: ${{ steps.filter.outputs.applications == 'true' && matrix.nnx_enabled == false }}  | 
66 |  | -        run: |  | 
67 |  | -          pytest keras/src/applications --cov=keras/src/applications --cov-config=pyproject.toml  | 
68 |  | -          coverage xml --include='keras/src/applications/*' -o apps-coverage.xml  | 
69 |  | -      - name: Codecov keras.applications  | 
70 |  | -        if: ${{ steps.filter.outputs.applications == 'true' && matrix.nnx_enabled == false }}  | 
71 |  | -        uses: codecov/codecov-action@v5  | 
72 |  | -        with:  | 
73 |  | -          env_vars: PYTHON,KERAS_HOME  | 
74 |  | -          flags: keras.applications,keras.applications-${{ matrix.backend }}  | 
75 |  | -          files: apps-coverage.xml  | 
76 |  | -          token: ${{ secrets.CODECOV_TOKEN }}  | 
77 |  | -          fail_ci_if_error: false  | 
78 |  | -      - name: Test integrations  | 
79 |  | -        if: ${{ matrix.backend != 'numpy' && matrix.nnx_enabled == false }}  | 
80 |  | -        run: |  | 
81 |  | -          python integration_tests/import_test.py  | 
82 |  | -          python integration_tests/numerical_test.py  | 
83 |  | -      - name: Test JAX-specific integrations  | 
84 |  | -        if: ${{ matrix.backend == 'jax' && matrix.nnx_enabled == false }}  | 
85 |  | -        run: |  | 
86 |  | -          python integration_tests/jax_custom_fit_test.py  | 
87 |  | -      - name: Test basic flow with NNX  | 
88 |  | -        if: ${{ matrix.nnx_enabled == true }}  | 
89 |  | -        env:  | 
90 |  | -          KERAS_NNX_ENABLED: true  | 
91 |  | -        run: |  | 
92 |  | -          python integration_tests/import_test.py  | 
93 |  | -          python integration_tests/basic_full_flow.py  | 
94 |  | -      - name: Test TF-specific integrations  | 
95 |  | -        if: ${{ matrix.backend == 'tensorflow'}}  | 
96 |  | -        run: |  | 
97 |  | -          python integration_tests/tf_distribute_training_test.py  | 
98 |  | -          python integration_tests/tf_custom_fit_test.py  | 
99 |  | -      - name: Test Torch-specific integrations  | 
100 |  | -        if: ${{ matrix.backend == 'torch'}}  | 
101 |  | -        run: |  | 
102 |  | -          pytest integration_tests/torch_workflow_test.py  | 
103 |  | -          python integration_tests/torch_custom_fit_test.py  | 
104 | 65 |       - name: Test with pytest  | 
105 | 66 |         if: ${{ matrix.nnx_enabled == false }}  | 
106 | 67 |         run: |  | 
 | 
110 | 71 |           else  | 
111 | 72 |             IGNORE_ARGS=""  | 
112 | 73 |           fi  | 
113 |  | -          pytest keras --ignore keras/src/applications --cov=keras --cov-config=pyproject.toml $IGNORE_ARGS  | 
 | 74 | +          pytest keras/src/trainers/trainer_test.py keras/src/export/saved_model_test.py --cov=keras --cov-config=pyproject.toml $IGNORE_ARGS  | 
114 | 75 |           coverage xml --omit='keras/src/applications/*,keras/api' -o core-coverage.xml  | 
115 | 76 |       - name: Codecov keras  | 
116 | 77 |         if: ${{ matrix.nnx_enabled == false }}  | 
 | 
0 commit comments