Skip to content

Bump actions/setup-python from 4 to 5 #38

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #38

Workflow file for this run

# Copyright 2022 Sutou Kouhei <[email protected]>
#
# Licensed 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
name: CI
on:
- push
- pull_request
concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
rat:
name: Release Audit Tool (RAT)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: datafusion-ruby
- name: Checkout Arrow
uses: actions/checkout@v4
with:
path: arrow
repository: apache/arrow
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Setup Archery
run: |
pip install -e arrow/dev/archery[lint]
- name: Run RAT
run: |
cd datafusion-ruby && archery lint --rat
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Prettier
run: |
npx prettier --check "**/*.md"
test:
name: Test
strategy:
fail-fast: false
matrix:
ruby-version:
- '3.1'
runs-on:
- ubuntu-latest
# - macos-latest
# - windows-latest
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- run: |
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install
run: |
bundle exec rake build
gem install pkg/*.gem
- name: Test
run: |
rm -rf lib
gem install \
red-parquet \
test-unit
test/run.rb