From ea684bfcca4a149453f3c44d84bac3fcbd0ced99 Mon Sep 17 00:00:00 2001 From: Olivier Heurtier Date: Fri, 8 Dec 2023 19:48:33 +0100 Subject: [PATCH] Fix build --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++-- .readthedocs.yaml | 5 ++++- docs/requirements.txt | 8 ++++---- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7d9f6a0..442b781 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,11 +4,31 @@ on: - push jobs: - pytest: + pytest_old: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9"] + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Run pytest + run: | + python -m pip install tox + python -m tox -e py-flask2-django32,py-flask2-django41,py-flask2-django42,py-flask3-django32,py-flask3-django41,py-flask3-django42 + + pytest_new: + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.10", "3.11", "3.12"] runs-on: ${{ matrix.os }} steps: diff --git a/.readthedocs.yaml b/.readthedocs.yaml index c0125c6..3b2a205 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,12 +1,15 @@ --- version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.10" # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py python: - version: 3.8 install: - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt index f1180b2..6099cf1 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,7 @@ -e . -sphinx == 4.0.2 -aiohttp == 3.7.4 -django == 3.2.18 -flask == 2.0.1 +sphinx >= 4.0.2 +aiohttp >= 3.7.4 +django >= 3.2.18 +flask >= 2.0.1 jinja2 >= 3.0.1 PyYAML >= 5.4.0