From d1d0e3ddf4749a4c89ae22e5fa70f333271fe550 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Fri, 12 Jul 2024 16:21:05 +0800 Subject: [PATCH] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 41 ++++++++-------------------- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e6a50cf..a8f1843 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -11,58 +11,41 @@ permissions: jobs: build: - # For the sake of simplicity in testing, the Paddle2ONNX packaging program will temporarily run on Ubuntu-latest. + # For the sake of simplicity in testing, the Athena packaging program will temporarily run on Ubuntu-latest. # However, to ensure the stability of the packaging system, we will need to fix the Ubuntu version in the future. runs-on: ubuntu-latest - # For the sake of simplicity in testing, the Paddle2ONNX packaging program will temporarily only package executable files for Python 3.8. - # In the future, we will need to extend support to cover Python 3.8 through Python 3.10. + # For the sake of simplicity in testing, the Athena packaging program will temporarily only package executable files for Python 3.8. + # In the future, we will need to extend support to cover Python 3.8 through Python 3.12. steps: - name: Setup Python 3.8 uses: actions/setup-python@v5 with: python-version: '3.8' - # Checkout the latest branch of Paddle2ONNX. - - name: Checkout Paddle2ONNX + # Checkout the latest branch of Athena. + - name: Checkout Athena uses: actions/checkout@v4 with: submodules: true - path: paddle2onnx + path: athena - # Checkout the branch(v3.16.0) of Paddle2ONNX. - - name: Checkout Protobuf - uses: actions/checkout@v4 - with: - repository: protocolbuffers/protobuf - ref: v3.16.0 - path: protobuf - - # Build Protobuf, detailed process can refer to the [Paddle2ONNX construction documentation](https://github.com/PaddlePaddle/Paddle2ONNX/blob/develop/docs/zh/compile.md). - - name: Build Protobuf - working-directory: ./protobuf - run: | - #============ - cmake ./cmake -B build_wd -Dprotobuf_BUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install_dir - cmake --build ./build_wd - cmake --build ./build_wd -- install - echo "$PWD/install_dir/bin" >> $GITHUB_PATH # Install Dependencies for Python - name: Install Dependencies for Python run: | python -m pip install --upgrade pip - pip install setuptools wheel auditwheel auditwheel-symbols build + pip install setuptools wheel build - # Build Paddle2ONNX - - name: Build Paddle2ONNX - working-directory: ./paddle2onnx + # Build Athena + - name: Build Athena + working-directory: ./athena run: | python -m build python -m pip install dist/*.whl # Install Test - name: Run Test - working-directory: ./paddle2onnx/tests + working-directory: ./athena/tests run: | - bash run.sh python + bash run_all_test.sh