Skip to content

Commit

Permalink
Fix the tests workflow for failing macos builds (#5498)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Nov 1, 2022
1 parent a2d003b commit b66d493
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
env:
HV_REQUIREMENTS: "-o flakes -o tests -o examples_tests"
MPLBACKEND: "Agg"
CHANS_DEV: "-c pyviz/label/dev -c bokeh/label/dev -c conda-forge -c nodefaults"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
Expand All @@ -55,50 +54,54 @@ jobs:
run: git fetch --prune --tags --unshallow
- name: conda setup
run: |
eval "$(conda shell.bash hook)"
conda update -n base -c defaults conda
conda config --prepend channels nodefaults
conda config --prepend channels conda-forge
conda config --prepend channels bokeh/label/dev
conda config --prepend channels pyviz/label/dev
conda config --remove channels defaults
conda config --set channel_priority strict
conda create -n test-environment python=${{ matrix.python-version }} pyctdev
- name: doit env_capture
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit env_capture
- name: doit develop_install
if: matrix.os != 'macos-latest'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
conda list
doit develop_install ${{ env.HV_REQUIREMENTS }}
python -c "from param import version; print(version.Version.setup_version('.', 'holoviews', archive_commit='$Format:%h$'))"
echo "-----"
git describe
# Temporary hacked step as on MacOS doit develop_install updated CPython leading to a pyctdev failure
- name: doit develop_install
if: matrix.os == 'macos-latest'
run: |
conda activate test-environment
conda list
doit develop_install ${{ env.HV_REQUIREMENTS }} || echo "Keep going"
pip install --no-deps --no-build-isolation -e .
python -c "from param import version; print(version.Version.setup_version('.', 'holoviews', archive_commit='$Format:%h$'))"
echo "-----"
git describe
- name: doit env_capture
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit env_capture
- name: doit test_flakes
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_flakes
- name: doit test_unit
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_unit
- name: test examples
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_examples
- name: codecov
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
codecov

0 comments on commit b66d493

Please sign in to comment.