diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d5641f6faa..9faaa2ac40 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -115,29 +115,25 @@ jobs: name: unit:${{ matrix.environment }}:${{ matrix.os }} needs: [pre_commit, setup, pixi_lock] runs-on: ${{ matrix.os }} + if: needs.setup.outputs.code_change == 'true' strategy: fail-fast: false matrix: ${{ fromJson(needs.setup.outputs.matrix) }} timeout-minutes: 120 steps: - uses: holoviz-dev/holoviz_tasks/pixi_install@v0 - if: needs.setup.outputs.code_change == 'true' with: environments: ${{ matrix.environment }} - name: Check packages latest version - if: needs.setup.outputs.code_change == 'true' run: | pixi run -e ${{ matrix.environment }} check-latest-packages bokeh panel param datashader - name: Test Unit - if: needs.setup.outputs.code_change == 'true' run: | pixi run -e ${{ matrix.environment }} test-unit $COV - name: Test Examples - if: needs.setup.outputs.code_change == 'true' run: | pixi run -e ${{ matrix.environment }} test-example - uses: codecov/codecov-action@v4 - if: needs.setup.outputs.code_change == 'true' with: token: ${{ secrets.CODECOV_TOKEN }} @@ -145,6 +141,7 @@ jobs: name: ui:${{ matrix.environment }}:${{ matrix.os }} needs: [pre_commit, setup, pixi_lock] runs-on: ${{ matrix.os }} + if: needs.setup.outputs.code_change == 'true' strategy: fail-fast: false matrix: @@ -155,11 +152,9 @@ jobs: PANEL_LOG_LEVEL: info steps: - uses: holoviz-dev/holoviz_tasks/pixi_install@v0 - if: needs.setup.outputs.code_change == 'true' with: environments: ${{ matrix.environment }} - name: Test UI - if: needs.setup.outputs.code_change == 'true' run: | # Create a .uicoveragerc file to set the concurrency library to greenlet # https://github.com/microsoft/playwright-python/issues/313 @@ -173,7 +168,6 @@ jobs: path: ./ui_screenshots if-no-files-found: ignore - uses: codecov/codecov-action@v4 - if: needs.setup.outputs.code_change == 'true' with: token: ${{ secrets.CODECOV_TOKEN }} @@ -181,6 +175,7 @@ jobs: name: core:${{ matrix.environment }}:${{ matrix.os }} needs: [pre_commit, setup, pixi_lock] runs-on: ${{ matrix.os }} + if: needs.setup.outputs.code_change == 'true' strategy: fail-fast: false matrix: @@ -189,14 +184,21 @@ jobs: timeout-minutes: 120 steps: - uses: holoviz-dev/holoviz_tasks/pixi_install@v0 - if: needs.setup.outputs.code_change == 'true' with: environments: ${{ matrix.environment }} - name: Check packages latest version - if: needs.setup.outputs.code_change == 'true' run: | pixi run -e ${{ matrix.environment }} check-latest-packages numpy pandas bokeh panel param - name: Test Unit - if: needs.setup.outputs.code_change == 'true' run: | pixi run -e ${{ matrix.environment }} test-unit + + result_test_suite: + name: result:test + needs: [unit_test_suite, ui_test_suite, core_test_suite] + if: always() + runs-on: ubuntu-latest + steps: + - name: check for failures + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: echo job failed && exit 1