Skip to content

Feature/remove session context (#14) #95

Feature/remove session context (#14)

Feature/remove session context (#14) #95

Workflow file for this run

# 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: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
PYTHON_VERSION: 3.9
TPCH_SCALING_FACTOR: "1"
TPCH_TEST_PARTITIONS: "1"
TPCH_DATA_PATH: "data"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install protobuf compiler
shell: bash
run: sudo apt-get install protobuf-compiler
- name: Build Rust code
run: cargo build --verbose
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r tpch/requirements.txt
- name: Generate test data
run: |
./scripts/gen-test-data.sh
- name: Run tests
run: cargo test --verbose