Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test jupyter notebooks #1426

Merged
merged 6 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/test-notebooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Test Jupyter Notebooks"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-eve:
strategy:
matrix:
python-version: ["3.10", "3.11"]
os: ["ubuntu-latest"]
fail-fast: false

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/pyproject.toml
**/constraints.txt
**/requirements-dev.txt
- name: Install python dependencies
run: |
python -m pip install -c ./constraints.txt pip setuptools wheel
python -m pip install -r ./requirements-dev.txt
- name: Run tox tests
env:
NUM_PROCESSES: auto
shell: bash
run: |
pyversion=${{ matrix.python-version }}
pyversion_no_dot=${pyversion//./}
tox run -e notebooks-py${pyversion_no_dot}
30 changes: 15 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ repos:
## version = re.search('black==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"rev: '{version}' # version from constraints.txt")
##]]]
rev: '23.11.0' # version from constraints.txt
rev: '23.12.1' # version from constraints.txt
##[[[end]]]
hooks:
- id: black
Expand All @@ -73,7 +73,7 @@ repos:
## version = re.search('isort==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"rev: '{version}' # version from constraints.txt")
##]]]
rev: '5.13.0' # version from constraints.txt
rev: '5.13.2' # version from constraints.txt
##[[[end]]]
hooks:
- id: isort
Expand All @@ -84,7 +84,7 @@ repos:
## version = re.search('flake8==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"rev: '{version}' # version from constraints.txt")
##]]]
rev: '6.1.0' # version from constraints.txt
rev: '7.0.0' # version from constraints.txt
##[[[end]]]
hooks:
- id: flake8
Expand All @@ -97,7 +97,7 @@ repos:
## print(f"- {pkg}==" + str(re.search(f'\n{pkg}==([0-9\.]*)', constraints)[1]))
##]]]
- darglint==1.8.1
- flake8-bugbear==23.12.2
- flake8-bugbear==24.1.17
- flake8-builtins==2.2.0
- flake8-debugger==4.1.2
- flake8-docstrings==1.7.0
Expand Down Expand Up @@ -146,9 +146,9 @@ repos:
## version = re.search('mypy==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"#========= FROM constraints.txt: v{version} =========")
##]]]
#========= FROM constraints.txt: v1.7.1 =========
#========= FROM constraints.txt: v1.8.0 =========
##[[[end]]]
rev: v1.7.1 # MUST match version ^^^^ in constraints.txt (if the mirror is up-to-date)
rev: v1.8.0 # MUST match version ^^^^ in constraints.txt (if the mirror is up-to-date)
hooks:
- id: mypy
additional_dependencies: # versions from constraints.txt
Expand All @@ -161,27 +161,27 @@ repos:
## print(f"- {pkg}==" + str(re.search(f'\n{pkg}==([0-9\.]*)', constraints)[1]))
##]]]
- astunparse==1.6.3
- attrs==23.1.0
- black==23.11.0
- attrs==23.2.0
- black==23.12.1
- boltons==23.1.1
- cached-property==1.5.2
- click==8.1.7
- cmake==3.27.9
- cytoolz==0.12.2
- cmake==3.28.1
- cytoolz==0.12.3
- deepdiff==6.7.1
- devtools==0.12.2
- frozendict==2.3.10
- frozendict==2.4.0
- gridtools-cpp==2.3.1
- importlib-resources==6.1.1
- jinja2==3.1.2
- lark==1.1.8
- mako==1.3.0
- jinja2==3.1.3
- lark==1.1.9
- mako==1.3.1
- nanobind==1.8.0
- ninja==1.11.1.1
- numpy==1.24.4
- packaging==23.2
- pybind11==2.11.1
- setuptools==69.0.2
- setuptools==69.0.3
- tabulate==0.9.0
- typing-extensions==4.5.0
- xxhash==3.0.0
Expand Down
Loading
Loading