From c81043052b2b1e5c3fc4c00464217923b98b19bb Mon Sep 17 00:00:00 2001 From: Kevin Meagher <11620178+kjmeagher@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:41:29 -0500 Subject: [PATCH] add python 3.12 to gh actions (#19) * add python 3.12 to gh actions * revert docs to 3.11 and push macos to 3.12 * add 3.12 to mac tests * if py312 use trunk of pytables * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix error in acton script * actually add pytables url * add hdf5 before isntaling pytables * drop macos down to 3.11 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/docs.yml | 4 ++-- .github/workflows/tests.yml | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4c6b03e..b3c061e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.12" cache: pip cache-dependency-path: pyproject.toml - name: Install dependencies @@ -25,7 +25,7 @@ jobs: pip install .[docs] - name: Run Sphinx working-directory: ./docs - run: make html SPHINXOPTS="-W --keep-going" + run: make html - name: Upload docs to docs.icecube.aq if: ${{ github.ref_name == 'main' && !github.event.act }} working-directory: ./docs diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a90fd5..680b66c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,10 +14,10 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: [ubuntu-22.04] include: - - python-version: 3.11 + - python-version: "3.11" os: macos-12 steps: - uses: actions/checkout@v3 @@ -27,6 +27,12 @@ jobs: python-version: ${{ matrix.python-version }} cache: pip cache-dependency-path: pyproject.toml + - name: Install pytables ubuntu + if: ${{ startsWith( matrix.os, 'ubuntu') && matrix.python-version == 3.12 }} + run: | + sudo apt-get install libhdf5-dev + python3 -m pip install --upgrade pip + python3 -m pip install git+https://github.com/PyTables/PyTables.git - name: Install SimWeights run: | python3 -m pip install --upgrade pip