-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify dev tooling, remove
colorcet examples
, drop 3.7, add 3.12 (#…
…120) * use mostly pip on the CI * remove colorcet examples cmd * move to pyproject * improve git archive * remove unused manifest * simplify building the docs * update dev instructions * drop 3.7 and try all python versions * simplify version definition
- Loading branch information
Showing
45 changed files
with
306 additions
and
1,296 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
include = *.py | ||
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py | ||
ignore = E, | ||
W |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
colorcet/__init__.py export-subst | ||
setup.cfg export-subst | ||
# For setuptools_scm with .git_archival.txt | ||
.git_archival.txt export-subst | ||
# Line Endings configuration file for Git | ||
# Set the default behavior, in case people don't have or can't have core.autocrlf set. | ||
* text=auto |
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 |
---|---|---|
|
@@ -16,71 +16,51 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
pre_commit: | ||
name: Run pre-commit | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/[email protected] | ||
test_suite: | ||
name: Pytest on ${{ matrix.python-version }}, ${{ matrix.os }} | ||
needs: [pre_commit] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
# 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.11"]') }} | ||
# 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", "3.12"]') || fromJSON('["3.7", "3.12"]') }} | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
timeout-minutes: 60 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
shell: bash -l {0} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ENV_NAME: "colorcet" | ||
MPLBACKEND: "Agg" | ||
DISPLAY: ":99.0" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "100" | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
- name: Fetch | ||
run: git fetch --prune --tags -f | ||
- name: conda setup | ||
run: | | ||
conda update -n base conda | ||
conda create -n ${{ env.ENV_NAME }} | ||
conda activate ${{ env.ENV_NAME }} | ||
conda config --env --prepend channels pyviz/label/dev | ||
conda config --env --show-sources | ||
conda install python=${{ matrix.python-version }} pyctdev | ||
- name: doit develop_install | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
doit develop_install -o tests -o examples | ||
- name: pin bokeh on Python 3.8 | ||
if: matrix.python-version == '3.8' | ||
# Pin to avoid pulling an old version of Bokeh and Panel. | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
conda install "bokeh >=3" | ||
- name: doit env_capture | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
doit env_capture | ||
- name: doit test_lint | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
doit test_lint | ||
- name: doit test_unit | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
doit test_unit | ||
- name: doit test_examples | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
doit test_examples | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
- name: pip update | ||
run: pip install --upgrade pip | ||
- name: install | ||
run: pip install -e ."[tests,tests_examples,tests_extra]" | ||
- name: pip list | ||
run: pip list | ||
- name: unit tests | ||
run: pytest colorcet --cov=colorcet --cov-append --cov-report xml | ||
- name: examples tests | ||
run: pytest doc --nbval-lax -p no:python | ||
- name: doit test_unit_extra | ||
run: | | ||
conda activate ${{ env.ENV_NAME }} | ||
pip install pytest-mpl | ||
doit test_unit_extra | ||
- uses: codecov/codecov-action@v3 | ||
run: pytest colorcet --mpl | ||
- uses: codecov/codecov-action@v4 | ||
if: github.event_name == 'push' |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This is the configuration for pre-commit, a local framework for managing pre-commit hooks | ||
# Check out the docs at: https://pre-commit.com/ | ||
|
||
default_stages: [commit] | ||
|
||
# Exclude Matlab files | ||
exclude: '.+\.m$' | ||
|
||
repos: | ||
- repo: https://github.com/nbQA-dev/nbQA | ||
rev: 1.7.1 | ||
hooks: | ||
- id: nbqa-flake8 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
exclude: (\.min\.js$|\.svg$) | ||
- id: trailing-whitespace | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 # See 'setup.cfg' for args | ||
args: [colorcet] | ||
files: colorcet/ | ||
- repo: https://github.com/hoxbro/clean_notebook | ||
rev: v0.1.15a2 | ||
hooks: | ||
- id: clean-notebook |
This file was deleted.
Oops, something went wrong.
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.