Skip to content

Commit

Permalink
add python 3.11 to workflow (#102)
Browse files Browse the repository at this point in the history
* add py3.11 to workflow

* add proper path to readme and license, add py311
  • Loading branch information
d-chambers authored Feb 1, 2023
1 parent a3effc6 commit 0b62d37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/get_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: 'latest'
python-version: 3.9
python-version: 3.10
channels: conda-forge

- name: install dascore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']

# only run if CI isn't turned off
if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'no_ci')
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ authors = [
]

description = "A python library distributed fiber optic sensing"
readme = ".github/README.md"
license = { file="LICENSE" }
readme = "readme.md"
license = { file="docs/LICENSE" }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
]

Expand Down
10 changes: 6 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
import shutil
from pathlib import Path

import matplotlib
import numpy as np
import pytest
import tables as tb
import tables.parameters

import dascore as dc
import dascore.examples as ex
Expand Down Expand Up @@ -77,14 +79,14 @@ def pytest_sessionstart(session):
and to set debug hook to True to avoid showing progress bars,
except when explicitly being tested.
"""
import matplotlib

import dascore as dc

# If running in CI make sure to turn off matplotlib.
if os.environ.get("CI", False):
matplotlib.use("Agg")

# need to set nodes to 32 to avoid crash on p3.11. See pytables#977.
tables.parameters.NODE_CACHE_SLOTS = 32
matplotlib.use("Agg")

# Ensure debug is set. This disables progress bars which disrupt debugging.
dc._debug = True

Expand Down

0 comments on commit 0b62d37

Please sign in to comment.