From a7cb8afd932e6188836d241d29224ada19a0e783 Mon Sep 17 00:00:00 2001 From: hxy7yx <1595670487@qq.com> Date: Thu, 10 Aug 2023 17:53:47 +0800 Subject: [PATCH] ci pyft --- .github/workflows/check.yml | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6f4314bc..34d55c7a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -104,4 +104,38 @@ jobs: ft/reports/log.html ft/reports/output.xml ft/reports/report.html - build/neuron.log \ No newline at end of file + build/neuron.log + + pyft: + runs-on: ubuntu-20.04 + container: ghcr.io/neugates/build:x86_64-main + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: compile + run: | + git config --global --add safe.directory $(pwd) + mkdir -p build && cd build + cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake + make -j4 + + - name: fetch neu-ft + uses: actions/checkout@v2 + with: + repository: neugates/neu-ft + path: neu-ft + + - name: function test + run: | + pip install -U pytest + pip install requests + pytest -s neu-ft/neuron + + - uses: actions/upload-artifact@v3 + with: + name: pyft_result + path: | + neu-ft/neuron/report