This commit is contained in:
fengzero
2023-10-09 08:41:09 +00:00
parent 71f3b3cb24
commit bb52ef5d5f
12 changed files with 120 additions and 33 deletions
+2 -30
View File
@@ -121,7 +121,7 @@ jobs:
gcov_include: include plugins src
gcov_ignore: tests simulator
pyft:
pft:
runs-on: ubuntu-20.04
container: ghcr.io/neugates/build:x86_64-main
@@ -129,7 +129,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: compile
run: |
@@ -138,37 +137,11 @@ jobs:
cmake -DUSE_GCOV=1 .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake
make -j4
- name: get neuron current branch
shell: bash
run: |
if [ '${{ github.event_name }}' == 'push' ]; then
branch=${{ github.ref_name }}
elif [ '${{ github.event_name }}' == 'pull_request' ]; then
branch=${{ github.event.pull_request.base.ref }}
elif [ '${{ github.event_name }}' == 'release' ]; then
branch=${{ github.event.release.target_commitish }}
fi
echo "BRANCH=$branch" >> $GITHUB_ENV
echo "neuron current branch is $branch"
- name: fetch neu-ft
uses: actions/checkout@v4
with:
repository: neugates/neu-ft
path: neu-ft
ref: ${{ env.BRANCH }}
- 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
pytest -s tests/ft
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
@@ -176,4 +149,3 @@ jobs:
gcov: true
gcov_include: include plugins src
gcov_ignore: tests simulator