Skip to content

Commit

Permalink
Try exporting python to path and use that
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jan 26, 2022
1 parent 55c281a commit 41e2688
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ jobs:
if: matrix.kind == 'dist'
run: |
python -m pip install --upgrade pip
sudo apt-get update
python setup.py sdist
last_dist=$(ls -t dist/ConfigSpace-*.tar.gz | head -n 1)
python -m pip install $last_dist[test]
Expand All @@ -109,15 +108,13 @@ jobs:
timeout-minutes: 45
run: |
if [[ ${{ matrix.kind }} == 'conda' ]]; then
PYTHON=$CONDA/envs/testenv/bin/python3
else
PYTHON=$(which python)
export PATH="$CONDA/envs/testenv/bin:$PATH"
fi
if [ ${{ matrix.code-cov }} ]; then
$PYTHON -m pytest ${{ env.pytest-args }} ${{ env.code-cov-args }} test
pytest ${{ env.pytest-args }} ${{ env.code-cov-args }} test
else
$PYTHON -m pytest ${{ env.pytest-args }} test
pytest ${{ env.pytest-args }} test
fi
- name: Check for files left behind by test
Expand Down

0 comments on commit 41e2688

Please sign in to comment.