Skip to content
Permalink
Browse files

workflow: Attempt to fix failure to invoke tests

  • Loading branch information
rdb committed Mar 21, 2020
1 parent 980c6bb commit d9f9e39d6daa3f543832f02e1fac63dae6c1335c
Showing with 11 additions and 10 deletions.
  1. +11 −10 .github/workflows/ci.yml
@@ -204,9 +204,9 @@ jobs:
working-directory: build
shell: bash
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest
ctest -V -C ${{ matrix.config }}
PYTHONPATH=. $PYTHON_EXECUTABLE -m pytest ../tests
# END B

- name: Setup Python (Python 3.5)
@@ -233,9 +233,9 @@ jobs:
working-directory: build
shell: bash
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest
ctest -V -C ${{ matrix.config }}
PYTHONPATH=. $PYTHON_EXECUTABLE -m pytest ../tests
# END B

- name: Setup Python (Python 3.6)
@@ -262,10 +262,10 @@ jobs:
working-directory: build
shell: bash
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest pytest-cov
export COVERAGE_FILE=.coverage.$RANDOM LLVM_PROFILE_FILE=$PWD/pid-%p.profraw
ctest -V -C ${{ matrix.config }}
PYTHONPATH=. $PYTHON_EXECUTABLE -m pytest ../tests --cov=.
# END B

- name: Setup Python (Python 3.7)
@@ -292,10 +292,10 @@ jobs:
working-directory: build
shell: bash
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest pytest-cov
export COVERAGE_FILE=.coverage.$RANDOM LLVM_PROFILE_FILE=$PWD/pid-%p.profraw
ctest -V -C ${{ matrix.config }}
PYTHONPATH=. $PYTHON_EXECUTABLE -m pytest ../tests --cov=.
# END B

- name: Setup Python (Python 3.8)
@@ -322,10 +322,10 @@ jobs:
working-directory: build
shell: bash
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
PYTHON_EXECUTABLE=$(grep 'Python_EXECUTABLE:' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest pytest-cov
export COVERAGE_FILE=.coverage.$RANDOM LLVM_PROFILE_FILE=$PWD/pid-%p.profraw
ctest -V -C ${{ matrix.config }}
PYTHONPATH=. $PYTHON_EXECUTABLE -m pytest ../tests --cov=.
# END B

- name: Upload coverage reports
@@ -338,6 +338,7 @@ jobs:
shopt -s expand_aliases
if ${{ runner.os == 'macOS' }}; then alias llvm-profdata='xcrun llvm-profdata' llvm-cov='xcrun llvm-cov'; fi
python -m pip install coverage
python -m coverage combine $(find . -name '.coverage.*')
llvm-profdata merge pid-*.profraw -o coverage.profdata

0 comments on commit d9f9e39

Please sign in to comment.
You can’t perform that action at this time.