Skip to content

Commit

Permalink
ci: upgrade tests matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Mar 4, 2024
1 parent ebdeb27 commit b0b8c59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0b8c59

Please sign in to comment.