diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb235837d47..437d74b7b7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,19 +43,23 @@ jobs: - os: ubuntu-latest python-version: "3.10" - install-method: mamba - extra-args: ["codecov"] + install-method: pip - os: ubuntu-latest python-version: "3.11" install-method: mamba - os: ubuntu-latest - python-version: "3.11" + python-version: "3.12" + install-method: mamba + extra-args: ["codecov"] + + - os: ubuntu-latest + python-version: "3.12" install-method: pip - os: macos-latest - python-version: "3.11" + python-version: "3.12" install-method: mamba - os: macos-latest @@ -116,10 +120,10 @@ jobs: PYTHON_VERSION: ${{ matrix.python-version }} run: | python --version | grep "Python ${PYTHON_VERSION}" - pip install pytest-cov pytest-xdist 'coverage!=6.3.0' - pip install -e .[all] + pip install -e .[tests] pip install ./test_plugin pip freeze + pip list - name: ctapipe-info if: contains(github.event.pull_request.labels.*.name, 'documentation-only') == false diff --git a/docs/changes/2486.maintenance.rst b/docs/changes/2486.maintenance.rst new file mode 100644 index 00000000000..d1ba7bf9e6e --- /dev/null +++ b/docs/changes/2486.maintenance.rst @@ -0,0 +1 @@ +Support and test on python 3.12. diff --git a/setup.cfg b/setup.cfg index 0bff10983e2..952a64b0239 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,7 +50,9 @@ install_requires= [options.extras_require] tests = pytest >= 7.0 - pandas ~=1.0 + pytest-cov + pytest-xdist + pandas tomli pytest_astropy_header h5py