Skip to content
Permalink
Browse files

workflow: Set PYTHONPATH before invoking pytest

  • Loading branch information
rdb committed Mar 20, 2020
1 parent 0165f31 commit 419868c3e82f4d1702b9c33a732f955e5c2a807c
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 419868c

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