From afd9571cad951877c9163d75e1ed0dc2baf12da1 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Tue, 15 Oct 2024 12:39:55 +0200 Subject: [PATCH] Fix Spark Java endpoint (#363) * Try out pinning Java version * Attempt to fix the problem with local TZ * Fix /etc/timezone * Fix permissions issue --- .github/workflows/python.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 9ad3513ad..b9566d4a1 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -62,8 +62,14 @@ jobs: python-version: ["3.8", "3.9", "3.10"] steps: + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: "8" + distribution: "adopt" + - name: Set Timezone - run: sudo timedatectl set-timezone UTC + run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone - uses: actions/checkout@v4 - name: Copy README @@ -89,8 +95,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: "8" + distribution: "adopt" + - name: Set Timezone - run: sudo timedatectl set-timezone UTC + run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone - uses: actions/checkout@v4 - name: Copy README @@ -113,8 +125,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: "8" + distribution: "adopt" + - name: Set Timezone - run: sudo timedatectl set-timezone UTC + run: sudo timedatectl set-timezone UTC && echo UTC | sudo tee /etc/timezone - uses: actions/checkout@v4 - name: Copy README @@ -140,8 +158,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: "8" + distribution: "adopt" + - name: Set Timezone - run: sudo timedatectl set-timezone Europe/Amsterdam + run: sudo timedatectl set-timezone Europe/Amsterdam && echo Europe/Amsterdam | sudo tee /etc/timezone - uses: actions/checkout@v4 - name: Copy README