diff --git a/.github/workflows/github-action-build.yml b/.github/workflows/github-action-build.yml index c2196b84e61..5d80dbbdd1d 100644 --- a/.github/workflows/github-action-build.yml +++ b/.github/workflows/github-action-build.yml @@ -98,18 +98,19 @@ jobs: run: cd core && sbt clean package - name: Run backend tests run: cd core && sbt test - + python_udf: + needs: detect_changes + if: ${{ needs.detect_changes.outputs.python_changed == 'true' }} runs-on: ${{ matrix.os }} strategy: matrix: os: - ubuntu-latest - python-version: [ '3.9', '3.10', '3.11', '3.12' ] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - name: Checkout Texera - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up R for R-UDF uses: r-lib/actions/setup-r@v2 with: @@ -141,4 +142,4 @@ jobs: cd core/amber/src/main/python && flake8 && black . --check - name: Test with pytest run: | - cd core/amber/src/main/python && pytest -sv \ No newline at end of file + cd core/amber/src/main/python && pytest -sv