build(deps): update tokio requirement from ~1.45 to ~1.47 #1065
Workflow file for this run
This file contains hidden or 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
# 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: CI | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
paths-ignore: | |
- '**.md' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/PULL_REQUEST_TEMPLATE.md' | |
- '.asf.yaml' | |
- '.licenserc.yaml' | |
- '.commitlintrc.yaml' | |
- 'LICENSE' | |
- 'NOTICE' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/PULL_REQUEST_TEMPLATE.md' | |
- '.asf.yaml' | |
- '.licenserc.yaml' | |
- '.commitlintrc.yaml' | |
- 'LICENSE' | |
- 'NOTICE' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
rust-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO: add windows which does not support container | |
os: [ ubuntu-24.04 ] | |
runs-on: ${{ matrix.os }} | |
container: | |
image: xd009642/tarpaulin:0.32.7 | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Rust unit tests with coverage report | |
run: | | |
cargo tarpaulin \ | |
--engine llvm --no-dead-code --no-fail-fast --all-features --workspace \ | |
--exclude-files cpp/src/* \ | |
--exclude-files crates/core/src/avro_to_arrow/* \ | |
-o xml --output-dir ./cov-reports --skip-clean | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cov-report-rust-tests-${{ runner.os }} | |
path: ./cov-reports | |
if-no-files-found: 'error' | |
python-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO: add windows | |
os: [ ubuntu-24.04, ubuntu-22.04-arm, macos-15 ] | |
python-version: [ '3.9', '3.13' ] | |
exclude: | |
- os: ubuntu-24.04 | |
python-version: '3.9' | |
- os: ubuntu-22.04-arm | |
python-version: '3.13' | |
- os: macos-15 | |
python-version: '3.9' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v5 | |
- name: install uv and set the python version | |
uses: astral-sh/setup-uv@v7 | |
with: | |
version: "0.7.19" | |
python-version: ${{ matrix.python-version }} | |
enable-cache: true | |
- name: Setup Python venv | |
run: | | |
make setup-venv | |
source .venv/bin/activate | |
make build | |
make develop | |
- name: Python unit tests with coverage report | |
run: | | |
source .venv/bin/activate | |
coverage run --include 'python/hudi/*' -m pytest -v | |
coverage xml --data-file=.coverage -o ./cov-reports/cov-report-python-tests-${{ join(matrix.*, '-') }}.xml | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
if: ${{ (matrix.os == 'ubuntu-24.04') && (matrix.python-version == '3.13') }} | |
with: | |
name: cov-report-python-tests-${{ join(matrix.*, '-') }} | |
path: ./cov-reports | |
if-no-files-found: 'error' | |
- name: Upload wheel files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-artifact-${{ join(matrix.*, '-') }} | |
path: ./target/wheels/*.whl | |
if-no-files-found: 'error' | |
integration-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
app-path: [ 'datafusion', 'hudi-file-group-api/cpp', 'hudi-table-api/rust' , 'hudi-table-api/python' ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Integration test - ${{ matrix.app-path }} | |
run: | | |
cd demo | |
./ci_run.sh ${{ matrix.app-path }} | |
publish-coverage: | |
name: Publish coverage reports to codecov.io | |
runs-on: ubuntu-latest | |
needs: [ rust-tests, python-tests ] | |
if: github.event.pull_request.user.login != 'dependabot[bot]' | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/download-artifact@v5 | |
with: | |
pattern: cov-report-* | |
merge-multiple: true | |
path: ./cov-reports | |
- name: Upload coverage reports to codecov.io | |
uses: codecov/codecov-action@v5 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./cov-reports |