Skip to content

Commit

Permalink
global: clean test infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim authored and kpsherva committed Jun 9, 2022
1 parent 16e1226 commit b9b4020
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2020 CERN.
# Copyright (C) 2022 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

name: CI

on:
Expand All @@ -21,16 +30,10 @@ jobs:
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
requirements-level: [min, pypi]
requirements-level: [pypi]
db-service: [postgresql10, postgresql13]
search-service: [elasticsearch7]
exclude:
- python-version: 3.8
requirements-level: min

- python-version: 3.9
requirements-level: min

- python-version: 3.7
db-service: postgresql13

Expand All @@ -54,7 +57,7 @@ jobs:

- name: Generate dependencies
run: |
python -m pip install --upgrade pip "setuptools<58.0" py wheel requirements-builder
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
Expand All @@ -72,7 +75,5 @@ jobs:
docker-compose --version
- name: Run tests
# You must change the ignore command for the manifest check.
# Remove `.travis-*` and add `.*-requirements.txt`
run: |
./run-tests.sh
4 changes: 2 additions & 2 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function cleanup {
}
trap cleanup EXIT

python -m check_manifest --ignore ".*-requirements.txt,pyproject.toml"
# python -m sphinx.cmd.build -qnNW docs docs/_build/html
python -m check_manifest
python -m sphinx.cmd.build -qnNW docs docs/_build/html
eval "$(docker-services-cli up --db ${DB:-postgresql} --search ${ES:-elasticsearch} --mq ${CACHE:-redis} --env)"
python -m pytest $@
tests_exit_code=$?
Expand Down

0 comments on commit b9b4020

Please sign in to comment.