Skip to content

Commit

Permalink
test: updating test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim authored and kpsherva committed Mar 21, 2024
1 parent 7160892 commit 034cd83
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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]"
Expand Down

0 comments on commit 034cd83

Please sign in to comment.