From b0b8c595d5baf125bc7d0478f00e33b23da08ae7 Mon Sep 17 00:00:00 2001 From: Nicola Tarocco Date: Mon, 4 Mar 2024 13:27:01 +0100 Subject: [PATCH] ci: upgrade tests matrix --- .github/workflows/tests.yml | 31 ++++++++++--------------------- setup.cfg | 2 +- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82b05d7..fb5bb96 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,15 +24,14 @@ on: default: 'Manual trigger' jobs: - Tests: + tests: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [3.8, 3.9] - requirements-level: [pypi] + python-version: ['3.9', '3.10', '3.11', '3.12'] db-service: [postgresql14] search-service: [opensearch2,elasticsearch7] - node-version: [16.x] + node-version: [16.x, 18.x, 20.x] include: - search-service: opensearch2 @@ -50,42 +49,32 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + - name: Run eslint test run: ./run-js-linter.sh -i - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - 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') }} + cache: pip + cache-dependency-path: setup.cfg - name: Install dependencies run: | - pip install -r .${{matrix.requirements-level}}-${{ matrix.python-version }}-requirements.txt pip install ".[$EXTRAS]" pip freeze docker --version docker-compose --version - name: Run backend tests - run: | - ./run-tests.sh + run: ./run-tests.sh - name: Install deps for frontend tests working-directory: ./invenio_administration/assets/semantic-ui/js/invenio_administration diff --git a/setup.cfg b/setup.cfg index a0db20b..33acede 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,7 @@ [metadata] name = invenio-administration version = attr: invenio_administration.__version__ -description = "Invenio module that adds administration panel to the system." +description = Invenio module that adds administration panel to the system. long_description = file: README.rst, CHANGES.rst keywords = invenio admin administration backoffice license = MIT