From 034cd83744abe32faf0d88cf8c897b8af0ec87d6 Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Wed, 20 Mar 2024 15:39:27 +0100 Subject: [PATCH] test: updating test matrix --- .github/workflows/tests.yml | 36 +++++++----------------------------- 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e01f7523..f6ed65fa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,24 +26,15 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [3.8, 3.9] - requirements-level: [min, pypi] + python-version: ["3.9", "3.10", "3.11", "3.12"] + requirements-level: [pypi] cache-service: [redis] - db-service: [postgresql14, postgresql13, mysql8] - exclude: - - python-version: 3.8 - requirements-level: min - - - python-version: 3.9 - requirements-level: min + db-service: [postgresql14, mysql8] include: - db-service: postgresql14 DB_EXTRAS: "postgresql" - - db-service: postgresql13 - DB_EXTRAS: "postgresql" - - db-service: mysql8 DB_EXTRAS: "mysql" @@ -53,28 +44,15 @@ jobs: EXTRAS: tests,admin,${{ matrix.DB_EXTRAS }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: pip + cache-dependency-path: setup.cfg - - name: Generate dependencies - run: | - python -m pip install --upgrade pip setuptools py wheel requirements-builder - requirements-builder -e "$EXTRAS" --level=${{ matrix.requirements-level }} setup.py > .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt - - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt') }} - - # TODO: Circular dependency. Invenio-Admin brings on Invenio-Accounts - # v1.x which brings Flask-Security which conflicts with - # Flask-Security-Invenio. - # pip install -r .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt - name: Install dependencies run: | pip install ".[$EXTRAS]"