Skip to content

Commit

Permalink
Test up to py312
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Jul 2, 2024
1 parent a30f9da commit 00b9d98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.10'] # NB: also see versions for 'conda'
python-version: ['3.9', '3.10', '3.11', '3.12'] # NB: also see versions for 'conda'
jobtype: ['test']
include:
- os: 'ubuntu-latest'
Expand Down Expand Up @@ -75,12 +75,12 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.10']
python-version: ['3.9', '3.12']
include:
- os: 'macos-latest'
python-version: '3.10'
python-version: '3.12'
- os: 'windows-latest'
python-version: '3.9'
python-version: '3.12'

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ open the [Anaconda terminal](https://docs.conda.io/projects/conda/en/latest/user
and run the following commands:

```sh
conda create --yes --name dapper-env python=3.9
conda create --yes --name dapper-env python=3.12
conda activate dapper-env
python --version
```

Ensure the printed version is 3.9 or more.
Ensure the printed version is as desired.
*Keep using the same terminal for the commands below.*

### Install
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

ignore = [
"B905", # zip w/o explicit `strict=` (active if target-version>=3.10)
]

[tool.ruff.lint.per-file-ignores]
"dapper/da_methods/{ensemble,variational}.py" = [
"B023" # Function definition does not bind loop variable
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def read(*parts):
# ==3.7 for Colab
# ==3.9 for the DAPPER/GCP cluster, since dill isn't compat. across versions.
# <3.11 because it failed with multiprocessing
python_requires=">=3.9,<3.11",
python_requires=">=3.9",
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS,
packages=find_packages(),
Expand Down

0 comments on commit 00b9d98

Please sign in to comment.