Skip to content
Snippets Groups Projects
Commit 1ea58052 authored by Robert Rosca's avatar Robert Rosca
Browse files

Adjust CI for new setup.py requirements

parent 54995673
No related branches found
No related tags found
1 merge request!437Fix/requirements into setuppy
......@@ -14,7 +14,7 @@ checks:
# GitLab... so this is a workaround for extracting the hash
- export CI_MERGE_REQUEST_TARGET_BRANCH_SHA=$(git ls-remote origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME | cut -d$'\t' -f1)
- export FILES=$(git diff $CI_COMMIT_SHA $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --name-only | tr '\n' ' ')
- python3 -m pip install --user -r requirements.txt
- python3 -m pip install ".[test,dev]"
- echo "Running pre-commit on diff from $CI_COMMIT_SHA to $CI_MERGE_REQUEST_TARGET_BRANCH_SHA ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME)"
# Pass list of modified files to pre-commit so that it only checks them
- echo $FILES | xargs pre-commit run --color=always --files
......@@ -23,6 +23,5 @@ pytest:
stage: test
only: [merge_requests]
script:
- python3 -m pip install --user -r requirements.txt
- python3 -m pip install --user 'pytest>=5.4.0' pytest-asyncio testpath
- python3 -m pip install ".[test]"
- pytest -vv tests/test_*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment