Skip to content

Commit

Permalink
Changing path in GA workflow JUST for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Jul 2, 2020
1 parent c48ef0d commit 8e61b3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pr_master_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ jobs:
python -c 'import sys; print("::set-env name=PYTHON_EXE::%s" \
% (sys.executable,))'
- name: Correct MacOS path
if: matrix.TARGET == 'osx'
run: |
PYTHON_DIR=`dirname $PYTHON_EXE`
echo "::set-env PATH::$PYTHON_DIR:$PATH"
- name: Install Pyutilib
run: |
$PYTHON_EXE setup.py develop
Expand Down
10 changes: 1 addition & 9 deletions doc/workflow/examples/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ def filter(line):
return 'Running' in line or "IGNORE" in line or line.startswith('usage:') or 'Sub-commands' in line

class Test(unittest.TestCase):

def setUp(self):
self._path = os.environ['PATH']
os.environ['PATH'] = os.pathsep.join([
os.path.dirname(sys.executable), os.environ['PATH']
])

def tearDown(self):
os.environ['PATH'] = self._path
pass

# Find all example*.py files, and use them to define baseline tests
for file in glob.glob(datadir+'example*.py'):
Expand Down

0 comments on commit 8e61b3b

Please sign in to comment.