Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
invenio-previewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fdm
invenio-previewer
Commits
62b5f3c5
Commit
62b5f3c5
authored
Feb 18, 2023
by
Christoph Ladurner
Committed by
Nicola
Sep 11, 2023
Browse files
Options
Downloads
Patches
Plain Diff
global: clean test infrastructure
parent
57eb35b1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/tests.yml
+7
-10
7 additions, 10 deletions
.github/workflows/tests.yml
run-tests.sh
+3
-6
3 additions, 6 deletions
run-tests.sh
setup.cfg
+5
-5
5 additions, 5 deletions
setup.cfg
with
15 additions
and
21 deletions
.github/workflows/tests.yml
+
7
−
10
View file @
62b5f3c5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
run-tests.sh
+
3
−
6
View file @
62b5f3c5
...
@@ -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
"
This diff is collapsed.
Click to expand it.
setup.cfg
+
5
−
5
View file @
62b5f3c5
...
@@ -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
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment