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

Update ci/cd to Python 3.12 #94

Merged
merged 4 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand All @@ -35,6 +35,8 @@ jobs:
coverage report -m
- name: Run notebooks
run: |
papermill docs/source/getting_started.ipynb output.json -k python3
papermill docs/source/advanced.ipynb output.json -k python3
papermill docs/source/deepdive_into_dtypes.ipynb output.json -k python3
for FILE in docs/source/*.ipynb; do
BASE=$(basename $FILE)
cp $FILE .
jupyter nbconvert --to notebook $BASE --execute
done
21 changes: 1 addition & 20 deletions docs/source/advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Advanced"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"# Advanced\n",
"\n",
"import sys\n",
"\n",
"sys.path.append(\"../\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Subclassing schemas\n",
"\n",
"Subclassing schemas is a useful pattern for pipelines where every next function adds a few columns."
Expand Down
9 changes: 1 addition & 8 deletions docs/source/deepdive_into_dtypes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,11 @@
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"import sys\n",
"\n",
"sys.path.append(\"../\")\n",
"\n",
"import pandas as pd\n",
"import numpy as np\n",
"\n",
"from typing import Any\n",
"from strictly_typed_pandas import DataSet, IndexedDataSet"
"from strictly_typed_pandas import DataSet"
]
},
{
Expand Down
21 changes: 1 addition & 20 deletions docs/source/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Getting started"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"# Getting started\n",
"\n",
"import sys\n",
"\n",
"sys.path.append(\"../\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## The problem\n",
"\n",
"I love Pandas! But in production code I’m always a bit wary when I see:"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ flake8==6.1.0
black[jupyter]==23.10.0
coverage==7.3.2
pytest==7.4.2
papermill==2.4.0
nbconvert==7.9.2
jupyter==1.0.0
sphinx<=7.2.6
sphinx_rtd_theme==1.3.0
Expand Down
Loading