diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index eaf543e..9e525bc 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -16,13 +16,13 @@ jobs: fetch-depth: 0 # Includes getting tags - name: Cache $HOME/.local # Significantly speeds up Poetry Install - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.local key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/deploy.yml') }} - name: Set up python 3.12 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.12" @@ -39,7 +39,7 @@ jobs: - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -60,7 +60,7 @@ jobs: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} poetry publish - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: dist diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d4b4d0b..08a43fb 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -44,10 +44,10 @@ jobs: # check-out repo and set-up python #---------------------------------------------- - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -66,7 +66,7 @@ jobs: #---------------------------------------------- - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 68306c4..d76941f 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,20 +1,26 @@ # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details +# Derived from: https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-poetry # Required version: 2 -# Set the version of Python and other tools you might need build: - os: ubuntu-20.04 - tools: { python: "3.10" } + os: "ubuntu-22.04" + tools: + python: "3.10" jobs: post_create_environment: + # Install poetry + # https://python-poetry.org/docs/#installing-manually - pip install poetry - - poetry config virtualenvs.create false - poetry self add poetry-dynamic-versioning post_install: - - poetry install --without=dev + # Install dependencies with 'docs' dependency group + # https://python-poetry.org/docs/managing-dependencies/#dependency-groups + # VIRTUAL_ENV needs to be set manually for now. + # See https://github.com/readthedocs/readthedocs.org/pull/11152/ + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --without=dev --with=docs # Build documentation in the docs/ directory with Sphinx sphinx: