Bump to version 0.4.0 (#41) #167
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: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Install native libs | |
run: sudo apt-get install -y libkrb5-dev libgsasl-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 | |
- 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@v3 | |
- 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 libgsasl-devel llvm-toolset-7.0-clang llvm-toolset-7.0-llvm-devel |