From 04e722989a9453adbb08b1af1fcaf0cefb7bc4c0 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Fri, 24 Nov 2023 10:15:55 +0800 Subject: [PATCH] fix CI --- .github/workflows/coverage.yml | 54 ---------------------------------- .github/workflows/wheels.yml | 1 + 2 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 3de5b4f..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Coverage - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the main branch -on: - push: - branches: [ '*' ] - pull_request: - branches: [ main ] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-22.04 - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 - - - name: Install bazelisk - run: | - mkdir -p "${GITHUB_WORKSPACE}/bin/" - wget https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -O "${GITHUB_WORKSPACE}/bin/bazel" - chmod +x "${GITHUB_WORKSPACE}/bin/bazel" - - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: 'microsoft' - - - name: Install clang-16 - run: | - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main" - sudo apt-get update - sudo apt-get install -y clang-16 libc++-16-dev libc++abi-16-dev - echo "/usr/lib/llvm-16/bin" >> $GITHUB_PATH - - - name: Generate coverage - run: | - "${GITHUB_WORKSPACE}/bin/bazel" coverage --nocache_test_results //... - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./bazel-out/_coverage/_coverage_report.dat - flags: unittests - fail_ci_if_error: true - verbose: true diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index bd058c8..d9c9641 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -54,6 +54,7 @@ jobs: env: CIBW_ARCHS_MACOS: universal2 CIBW_ARCHS_WINDOWS: auto ARM64 + CIBW_BEFORE_BUILD: pip install numpy opencv-python --prefer-binary - name: Verify clean directory run: git diff --exit-code