Github Actions: Reintroduce python tests for linux.

Also unify "unit test" step since it was the same for both platforms.
This commit is contained in:
Kristian Bendiksen 2020-12-18 13:32:17 +01:00
parent 4dfcc7e45b
commit b2ec95fba4

View File

@ -205,20 +205,13 @@ jobs:
- name: Stats for buildcache
run: ${{ github.workspace }}/buildcache/bin/buildcache -s
- name: (Windows) Run Unit Tests
if: contains( matrix.config.os, 'windows')
- name: Run Unit Tests
shell: bash
run: |
cmakebuild/ApplicationCode/ResInsight --unittest
- name: (Linux) Run Unit Tests
if: "!contains( matrix.config.os, 'windows')"
shell: bash
run: |
cmakebuild/ApplicationCode/ResInsight --unittest
- name: (Windows) Run pytest
if: contains( matrix.config.os, 'windows')
- name: Run pytest
env:
RESINSIGHT_EXECUTABLE: ${{ runner.workspace }}/ResInsight/cmakebuild/ApplicationCode/ResInsight.exe
RESINSIGHT_EXECUTABLE: ${{ runner.workspace }}/ResInsight/cmakebuild/ApplicationCode/ResInsight
run: |
cd ApplicationCode/GrpcInterface/Python/rips
${{ steps.python-path.outputs.PYTHON_EXECUTABLE }} -m pytest --console