Skip to content

Commit

Permalink
ci: use reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yashlamba committed Feb 25, 2025
1 parent 92a798b commit 68a404c
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,4 @@ on:

jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
# TODO: You can add/remove combinations e.g. `dev` requirements or
# `postgresql13` by adding 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.9', '3.12']
db-service: [postgresql14]
search-service: [opensearch2]
include:
- db-service: postgresql14
DB_EXTRAS: "postgresql"

- search-service: opensearch2
SEARCH_EXTRAS: "opensearch2"

env:
DB: ${{ matrix.db-service }}
SEARCH: ${{ matrix.search-service }}
# TODO: Adapt EXTRAS accordingly
EXTRAS: tests,${{ matrix.search-service }}

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.cfg

- name: Install dependencies
run: |
pip install ".[$EXTRAS]"
pip freeze
docker --version
docker-compose --version
- name: Run tests
run: ./run-tests.sh
uses: inveniosoftware/workflows/.github/workflows/tests-python.yml@master

0 comments on commit 68a404c

Please sign in to comment.