Skip to content

Commit

Permalink
add python 3.12 to gh actions (#19)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kjmeagher and pre-commit-ci[bot] authored Oct 4, 2023
1 parent e6106df commit c810430
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c810430

Please sign in to comment.