Skip to content

Commit

Permalink
Test python 3.11 in CI (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanep97 authored Aug 30, 2024
1 parent da6e7b9 commit 9fc5760
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: ["3.10.9"]
python-version: ["3.10.9", "3.11"]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -91,16 +91,19 @@ jobs:
runs-on: [self-hosted, x64, Linux, ubuntu, generic]
# Don't run if this is a tag push, already done during docs deployment (docs.yml)
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}

strategy:
max-parallel: 1
matrix:
python-version: ["3.10.9", "3.11"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.10.9"
python-version: ${{ matrix.python-version }}

- name: Update pip
run: |
Expand Down
4 changes: 2 additions & 2 deletions docs/recipes/02_database_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@

# %% [markdown]
# In an IPython terminal, this will pretty-print a description of `epoch`.
# To query the first of the "science" (`LIGHT`) files, we could access them by
# To query the last of the "science" (`LIGHT`) CAFOS files, we could do

# %%
rf = epoch.rawfits.order_by('-juliandate').first()
rf = RawFit.objects.filter(imgtype=IMGTYPES.LIGHT, instrument=INSTRUMENTS.CAFOS).order_by('-juliandate').first()
rf

# %% [markdown]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ doc = [
"nbstripout",
"jupytext",
"ipykernel",
"sphinx-gallery<=0.7.0",
"sphinx-gallery",
"sphinx-gallery<=0.7.0; python_version<'3.11'", # PR 130, PR 127
"myst-nb",
]
dev = [
Expand Down

0 comments on commit 9fc5760

Please sign in to comment.