From dd99968f1cf168dcad3215b5412118f2c2be4dc8 Mon Sep 17 00:00:00 2001 From: Allen Downey Date: Sat, 4 Nov 2023 19:54:32 -0400 Subject: [PATCH] Testing on 3.11 --- .github/workflows/tests.yml | 2 +- Makefile | 9 ++++----- requirements-dev.txt | 2 -- requirements.txt | 6 +----- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 60b2ccd9..95ba89b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.8] + python-version: [3.8, "3.11"] steps: - uses: actions/checkout@v2 diff --git a/Makefile b/Makefile index 7dfd2b30..801b17fb 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,13 @@ PROJECT_NAME = ThinkBayes2 -PYTHON_VERSION = 3.8 +PYTHON_VERSION = 3.10 PYTHON_INTERPRETER = python -## Set up python interpreter environment create_environment: - conda create --name $(PROJECT_NAME) python=$(PYTHON_VERSION) -y + conda create -y --name $(PROJECT_NAME) python=$(PYTHON_VERSION) pymc @echo ">>> conda env created. Activate with:\nconda activate $(PROJECT_NAME)" -## Install Python Dependencies requirements: $(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel $(PYTHON_INTERPRETER) -m pip install -r requirements.txt @@ -22,4 +20,5 @@ clean: tests: - cd soln; pytest --nbmake chap01.ipynb + cd soln; pytest --nbmake chap0[1-9].ipynb + cd soln; pytest --nbmake chap1[0-8].ipynb diff --git a/requirements-dev.txt b/requirements-dev.txt index b3ffe6cf..77c70944 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,3 @@ - -r requirements.txt -black pytest nbmake diff --git a/requirements.txt b/requirements.txt index b697fea5..caa64ef3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,7 @@ jupyter -numpy -matplotlib +nbclassic seaborn -pandas statsmodels -scipy -mkl-service lxml xlrd html5lib