diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 996e759..6f6d3ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,12 +85,32 @@ jobs: name: ${{ steps.sanitize.outputs.artifact_name }} path: ${{ env.WORKSPACE_ARTIFACT_PATH }} + - name: Pepare python environement for tests + shell: bash + run: | + ${{ steps.sofa.outputs.python_exe }} -m pip install matplotlib + + - name: Launch test + id: tests + uses: sofa-framework/sofa-test-action@v1.0 + with: + sofa_root: ${{ github.workspace }}/sofa + sofa_version: ${{ steps.sofa.outputs.sofa_version }} + src_dir: ${{ env.WORKSPACE_SRC_PATH }} + build_dir: ${{ env.WORKSPACE_BUILD_PATH }} + python_exe: ${{ steps.sofa.outputs.python_exe }} + output_dir: ${{ github.workspace }}/tests-results_dir + nb_parallel_threads: '4' + - name: Notify dashboard if: always() && startsWith(github.repository, 'sofa-framework') && startsWith(github.ref, 'refs/heads/master') # we are not on a fork and on master env: DASH_AUTH: ${{ secrets.PLUGIN_DASH }} shell: bash run: | + test_status=$([ '${{ steps.tests.outcome }}' == 'success' ] && \ + echo 'true' || echo 'false') + build_status=$([ '${{ steps.build-and-install.outcome }}' == 'success' ] && \ echo 'true' || echo 'false') @@ -107,6 +127,7 @@ jobs: \"url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\",\ \"os\":\"$os\",\ \"build\":$build_status,\ + \"tests\":$test_status,\ \"binary\":$binary_status}"\ https://sofa-framework.org:5000/api/v1/plugins