Bump mongomock from 4.2.0.post1 to 4.3.0 #1012
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
name: Duplications detection | |
on: | |
workflow_dispatch: | |
release: | |
types: [ created ] | |
pull_request: | |
push: | |
branches: | |
- master | |
- stable | |
jobs: | |
duplications-detection: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run the command and capture output | |
id: detector | |
run: | | |
bash .github/scripts/detect_duplications.sh > duplicated.txt | |
shell: bash | |
- name: Check if duplicated is empty | |
run: | | |
if [ -s "duplicated.txt" ]; then | |
echo -e "Duplications detected between requirements.txt and extra_requirements/requirements-tests.txt\nThey are:" | |
cat duplicated.txt | |
exit 1 | |
else | |
echo "No duplications detected between requirements.txt and extra_requirements/requirements-tests.txt" | |
fi |