Skip to content

Add setOwner support #329

Add setOwner support

Add setOwner support #329

Workflow file for this run

name: python-test
on:
push:
branches:
- 'master'
pull_request:
branches:
- "*"
defaults:
run:
working-directory: ./python
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dev dependencies
run: |
pip3 install -r requirements-dev.txt
- name: Type checking
run: |
mypy python
test:
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Install native libs
run: sudo apt-get install -y libkrb5-dev krb5-user
- name: Download Hadoop
run: |
wget -q https://dlcdn.apache.org/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz
tar -xf hadoop-3.3.6.tar.gz -C $GITHUB_WORKSPACE
echo "$GITHUB_WORKSPACE/hadoop-3.3.6/bin" >> $GITHUB_PATH
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Create virtualenv
run: |
python3 -m venv .venv
- uses: PyO3/maturin-action@v1
with:
command: develop
sccache: 'true'
container: 'off'
working-directory: ./python
args: --features kerberos
- name: Install dev dependencies and run tests
run: |
source .venv/bin/activate
pip3 install -r requirements-dev.txt
pytest
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build wheel
uses: PyO3/maturin-action@v1
with:
args: --release --out dist --find-interpreter --manifest-path python/Cargo.toml
sccache: 'true'
manylinux: '2014'
docker-options: -e LD_LIBRARY_PATH=/opt/rh/llvm-toolset-7.0/root/usr/lib64 -e LLVM_CONFIG_PATH=/opt/rh/llvm-toolset-7.0/root/usr/bin/llvm-config
before-script-linux: |
yum install -y epel-release && yum install -y krb5-devel llvm-toolset-7.0-clang llvm-toolset-7.0-llvm-devel