Gssapi dynamic lib #350
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: python-test | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- "*" | |
defaults: | |
run: | |
working-directory: ./python | |
jobs: | |
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@v4 | |
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@v5 | |
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: --extras devel | |
- name: Run lints | |
run: | | |
source .venv/bin/activate | |
mypy | |
isort . --check | |
black . --check | |
- name: Run tests | |
run: | | |
source .venv/bin/activate | |
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 | |
- name: Upload wheels | |
if: github.ref == 'refs/heads/master' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels | |
path: dist |