Skip to content
Snippets Groups Projects
Commit 62b5f3c5 authored by Christoph Ladurner's avatar Christoph Ladurner Committed by Nicola
Browse files

global: clean test infrastructure

parent 57eb35b1
No related branches found
No related tags found
No related merge requests found
...@@ -21,12 +21,9 @@ jobs: ...@@ -21,12 +21,9 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: [3.7, 3.8, 3.9] python-version: [3.7, 3.8, 3.9]
services: [release] requirements-level: [pypi]
include: env:
- services: release EXTRAS: tests
EXTRAS: "all"
REQUIREMENTS_LEVEL: "pypi"
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
...@@ -39,18 +36,18 @@ jobs: ...@@ -39,18 +36,18 @@ jobs:
- name: Generate dependencies - name: Generate dependencies
run: | run: |
pip install wheel requirements-builder pip install wheel requirements-builder
requirements-builder -e ${{ matrix.EXTRAS }} --level=${{ matrix.REQUIREMENTS_LEVEL }} setup.py > .${{ matrix.REQUIREMENTS_LEVEL }}-${{ matrix.python-version }}-requirements.txt requirements-builder -e $EXTRAS --level=${{ matrix.requirements-level }} setup.py > .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
- name: Cache pip - name: Cache pip
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.REQUIREMENTS_LEVEL }}-${{ matrix.python-version }}-requirements.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt') }}
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install -r .${{matrix.REQUIREMENTS_LEVEL}}-${{ matrix.python-version }}-requirements.txt pip install -r .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
pip install .[${{ matrix.EXTRAS }}] pip install .[$EXTRAS]
pip freeze pip freeze
- name: Run tests - name: Run tests
......
...@@ -9,10 +9,7 @@ ...@@ -9,10 +9,7 @@
# Invenio is free software; you can redistribute it and/or modify it # 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. # under the terms of the MIT License; see LICENSE file for more details.
python -m check_manifest && \ python -m check_manifest
python -m setup extract_messages --dry-run python -m setup extract_messages --output-file /dev/null
python -m sphinx.cmd.build -qnNW docs docs/_build/html && \ python -m sphinx.cmd.build -qnNW docs docs/_build/html
python -m pytest python -m pytest
python -m sphinx.cmd.build -qnNW -b doctest docs docs/_build/doctest
tests_exit_code=$?
exit "$tests_exit_code"
...@@ -43,15 +43,15 @@ install_requires = ...@@ -43,15 +43,15 @@ install_requires =
[options.extras_require] [options.extras_require]
tests = tests =
pytest-black>=0.3.0,<0.3.10 pytest-black>=0.3.0
pytest-invenio>=1.4.5
invenio-config>=1.0.3 invenio-config>=1.0.3
invenio-theme>=1.3.20
invenio-db[versioning]>=1.0.14 invenio-db[versioning]>=1.0.14
mock>=1.3.0
pytest-invenio>=1.4.5
sphinx>=4.5
invenio-files-rest>=1.3.2 invenio-files-rest>=1.3.2
invenio-records-files>=1.2.1 invenio-records-files>=1.2.1
invenio-theme>=1.3.20
mock>=1.3.0
sphinx>=4.5
# Kept for backwards compatibility # Kept for backwards compatibility
docs = docs =
files = files =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment