diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c0388f7..671d2f29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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: | diff --git a/docs/recipes/02_database_queries.py b/docs/recipes/02_database_queries.py index 4a33331f..1d70c775 100644 --- a/docs/recipes/02_database_queries.py +++ b/docs/recipes/02_database_queries.py @@ -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] diff --git a/pyproject.toml b/pyproject.toml index e05bde77..0ac63a77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [