-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integration test for package import (#218)
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This directory holds all integration tests. The tests are mainly to be run by | ||
CI, but can also be run manually. | ||
|
||
The main reason for having integration tests is to make sure that the package | ||
can be imported and used as intended, something that can't be verified with | ||
unit-tests alone. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# XXX: must be run with lowest required python version (as specified in | ||
# pyproject.toml), to ensure compatibility | ||
|
||
set -ex | ||
|
||
[[ "$(python --version)" == "Python 3.8."* ]] | ||
|
||
repo=$(dirname $(realpath $0))/.. | ||
url="git+file://$repo" | ||
dir=$(mktemp -d) | ||
|
||
cd $dir | ||
python -m venv .env | ||
source .env/bin/activate | ||
|
||
pip install $url | ||
python -c "from odm_validation.validation import validate_data" |