Skip to content
Permalink
Browse files

workflow: Set PYTHONPATH before invoking pytest

  • Loading branch information
rdb committed Mar 20, 2020
1 parent 0165f31 commit b4469162dd26f5d92fc8f0390f4f003fa17bef35
Showing with 10 additions and 0 deletions.
  1. +10 −0 .github/workflows/ci.yml
@@ -203,6 +203,8 @@ jobs:
if: contains(matrix.python, 'YES')
working-directory: build
shell: bash
env:
PYTHONPATH: .
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest
@@ -232,6 +234,8 @@ jobs:
if: contains(matrix.python, 'YES')
working-directory: build
shell: bash
env:
PYTHONPATH: .
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest
@@ -261,6 +265,8 @@ jobs:
if: contains(matrix.python, 'YES')
working-directory: build
shell: bash
env:
PYTHONPATH: .
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest pytest-cov
@@ -291,6 +297,8 @@ jobs:
if: contains(matrix.python, 'YES')
working-directory: build
shell: bash
env:
PYTHONPATH: .
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest pytest-cov
@@ -321,6 +329,8 @@ jobs:
if: contains(matrix.python, 'YES')
working-directory: build
shell: bash
env:
PYTHONPATH: .
run: |
PYTHON_EXECUTABLE=$(grep '_Python_EXECUTABLE:INTERNAL' CMakeCache.txt | sed 's/.*=//')
$PYTHON_EXECUTABLE -m pip install pytest pytest-cov

0 comments on commit b446916

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