From 75ae073f79ae4e3e3780b39163e96ed7e0deb983 Mon Sep 17 00:00:00 2001 From: Afjes <599641678@qq.com> Date: Tue, 27 Jan 2026 07:40:11 +0000 Subject: [PATCH] fix workflow ci --- .github/workflows/ci.yml | 72 ---------------------------------------- tools/Dockerfile | 4 +++ 2 files changed, 4 insertions(+), 72 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 99a7858ce..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: CI_GPU - -on: - pull_request: - branches: - - develop - paths-ignore: - - '**.md' - - '**.txt' - workflow_dispatch: - -concurrency: - group: ${{ github.event.pull_request.number }}-gpu-ci - cancel-in-progress: true - -jobs: - CI_GPU: - timeout-minutes: 60 - runs-on: - group: BD_BJ-V100 - steps: - - name: Print current runner name - run: | - echo "Current runner name: ${{ runner.name }}" - - - name: Code Checkout - env: - docker_image: registry.baidubce.com/paddlepaddle/paddle:3.0.0b1 - run: | - REPO="https://github.com/${{ github.repository }}.git" - FULL_REPO="${{ github.repository }}" - REPO_NAME="${FULL_REPO##*/}" - BASE_BRANCH="${{ github.base_ref }}" - # Clean the repository directory before starting - docker run --rm --net=host -v $(pwd):/workspace -w /workspace \ - -e "REPO_NAME=${REPO_NAME}" \ - -e "BASE_BRANCH=${BASE_BRANCH}" \ - ${docker_image} /bin/bash -c ' - if [ -d ${REPO_NAME} ]; then - echo "Directory ${REPO_NAME} exists, removing it..." - rm -rf ${REPO_NAME} - fi - ' - git config --global user.name "PaddleCI" - git config --global user.email "paddle_ci@example.com" - git clone ${REPO} ${REPO_NAME} -b ${BASE_BRANCH} - cd PaddleSpeech - if [ "${{ github.event_name }}" = "pull_request" ]; then - git fetch origin pull/${{ github.event.pull_request.number }}/head:pr/${{ github.event.pull_request.number }} - git merge pr/${{ github.event.pull_request.number }} - git log -n 3 --oneline - else - git checkout ${{ github.sha }} - git log -n 3 --oneline - fi - - - name: Run CI tests - env: - docker_image: registry.baidubce.com/paddlepaddle/paddle:3.0.0b1 - run: | - runner_name="${{ runner.name }}" - PARENT_DIR=$(dirname "$WORKSPACE") - echo "PARENT_DIR:$PARENT_DIR" - docker run --rm --net=host --cap-add=SYS_PTRACE --shm-size=64G \ - -v $(pwd):/workspace -w /workspace \ - -e "http_proxy=http://bdhttp:ff015d42d2e77bcf1df0b20fbb848340@180.76.138.26:18801" \ - -e "https_proxy=http://bdhttp:ff015d42d2e77bcf1df0b20fbb848340@180.76.138.26:18801" \ - -e "no_proxy=bcebos.com" \ - ${docker_image} /bin/bash -c " - cd PaddleSpeech/tests/unit - bash ci.sh - " \ No newline at end of file diff --git a/tools/Dockerfile b/tools/Dockerfile index 1fbeeb8d6..dd56d92c3 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -1,3 +1,7 @@ FROM registry.baidubce.com/paddlepaddle/paddle:latest-dev-cuda12.3-cudnn9.0-trt8.6-gcc12.2 RUN apt-get update -y RUN apt-get -y install libsndfile1 lsof + + + +