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 8eaf059 commit 56f536c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
# a new item to the following lists.
# You can see the complete list of services and versions that are available at:
# https://docker-services-cli.readthedocs.io/en/latest/configuration.html
python-version: ["3.8", "3.9"]
requirements-level: [pypi]
python-version: ['3.9', '3.10', '3.11', '3.12']
search-service: [opensearch2, opensearch1]
include:
- search-service: opensearch2
Expand All @@ -40,35 +39,24 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1

- 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: |
pip install 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 tests
run: |
./run-tests.sh
run: ./run-tests.sh
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[metadata]
name = invenio-stats
version = attr: invenio_stats.__version__
description = "Invenio module for collecting statistics."
description = Invenio module for collecting statistics.
long_description = file: README.rst, CHANGES.rst
keywords = invenio statistics
license = MIT
Expand Down

0 comments on commit 56f536c

Please sign in to comment.