-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/hist-error-message
- Loading branch information
Showing
186 changed files
with
1,234 additions
and
1,353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: tests | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
@@ -20,12 +20,12 @@ jobs: | |
fetch-depth: "1" | ||
- name: set PY | ||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | ||
- uses: actions/cache@v2 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: pre-commit | ||
uses: pre-commit/action@v2.0.3 | ||
uses: pre-commit/action@v3.0.0 | ||
test_suite: | ||
name: Pytest on ${{ matrix.python-version }}, ${{ matrix.os }} | ||
needs: [pre_commit] | ||
|
@@ -34,61 +34,36 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
python-version: ['3.7', '3.9', '3.11'] | ||
timeout-minutes: 90 | ||
# Run on the full set on schedule, workflow_dispatch and push&tags events, otherwise on a subset. | ||
python-version: ${{ ( github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || ( github.event_name == 'push' && github.ref_type == 'tag' ) ) && fromJSON('["3.7", "3.8", "3.9", "3.10", "3.11"]') || fromJSON('["3.7", "3.9", "3.11"]') }} | ||
timeout-minutes: 120 # Because slow conda solve on Python 3.7 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
shell: bash -el {0} | ||
env: | ||
HV_REQUIREMENTS: "-o flakes -o tests -o examples_tests" | ||
DESC: "Python ${{ matrix.python-version }} tests" | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" | ||
DISPLAY: ":99.0" | ||
PYTHONIOENCODING: "utf-8" | ||
MPLBACKEND: "Agg" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "100" | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
- uses: pyviz-dev/holoviz_tasks/[email protected] | ||
with: | ||
miniconda-version: "latest" | ||
- name: Fetch unshallow | ||
run: git fetch --prune --tags --unshallow | ||
- name: conda setup | ||
run: | | ||
conda update -n base -c defaults conda | ||
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 | ||
name: unit_test_suite | ||
python-version: ${{ matrix.python-version }} | ||
channel-priority: strict | ||
channels: pyviz/label/dev,conda-forge,nodefaults | ||
envs: "-o flakes -o tests -o examples_tests" | ||
cache: true | ||
conda-update: true | ||
conda-mamba: mamba | ||
id: install | ||
- name: bokeh sampledata | ||
run: | | ||
conda activate test-environment | ||
doit env_capture | ||
- name: doit develop_install | ||
if: matrix.os != 'macos-latest' | ||
run: | | ||
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: | | ||
conda activate test-environment | ||
doit env_capture | ||
bokeh sampledata | ||
- name: doit test_flakes | ||
run: | | ||
conda activate test-environment | ||
|
@@ -98,9 +73,20 @@ jobs: | |
conda activate test-environment | ||
doit test_unit | ||
- name: test examples | ||
if: matrix.python-version != '3.11' | ||
run: | | ||
conda activate test-environment | ||
mkdir -p ~/.jupyter/ | ||
echo "c.ExecutePreprocessor.startup_timeout=120" >> ~/.jupyter/jupyter_nbconvert_config.py | ||
doit test_examples | ||
- name: test examples - python 3.11 | ||
# Should be removed when numba support python 3.11 | ||
if: matrix.python-version == '3.11' | ||
run: | | ||
conda activate test-environment | ||
mkdir -p ~/.jupyter/ | ||
echo "c.ExecutePreprocessor.startup_timeout=120" >> ~/.jupyter/jupyter_nbconvert_config.py | ||
pytest -n auto --dist loadscope --nbval-lax examples/reference/elements | ||
- name: codecov | ||
run: | | ||
conda activate test-environment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.