Skip to content

Read interface support predicate #124

Read interface support predicate

Read interface support predicate #124

################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
name: Check Code Style & Run Tests
on:
push:
pull_request:
paths-ignore:
- '**/*.md'
env:
JDK_VERSION: 8
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
lint-python:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: 'adopt'
- name: Set up hadoop dependency
run: |
mkdir -p ${{ github.workspace }}/temp
curl -L -o ${{ github.workspace }}/temp/bundled-hadoop.jar https://repo.maven.apache.org/maven2/org/apache/flink/flink-shaded-hadoop-2-uber/2.8.3-10.0/flink-shaded-hadoop-2-uber-2.8.3-10.0.jar
if [ ! -f ${{ github.workspace }}/temp/bundled-hadoop.jar ]; then
echo "JAR download failed."
exit 1
- name: Run lint-python.sh
env:
_PYPAIMON_HADOOP_CLASSPATH: ${{ github.workspace }}/temp/bundled-hadoop.jar
run: |
chmod +x dev/lint-python.sh
./dev/lint-python.sh
# Create a temporary directory
- name: Create temporary directory
run: mkdir -p ${{ github.workspace }}/temp
# Download the JAR file and save to the temporary directory
- name: Download JAR
run: |
curl -L -o ${{ github.workspace }}/temp/your-dependency.jar https://central.maven.org/maven2/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
# List files in the temporary directory
- name: List downloaded files
run: ls -al ${{ github.workspace }}/temp