chore(deps): update dependency botocore to v1.35.87 #468
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: Pumps harvester (test mode) | |
on: | |
push: | |
paths: | |
- 'pumps-harvester/**' | |
branches: | |
- master | |
- staging | |
- master-magdeburg | |
pull_request: | |
branches: | |
- master | |
- staging | |
- master-magdeburg | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
working-directory: pumps-harvester | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
pytest | |
# TODO: [GDK-18] increase test coverage to around 75 | |
- name: Coverage with pytest | |
run: | | |
pytest --cov=harvester --cov-fail-under 65 --cov-report term-missing --cov-config=.coveragerc | |
docker: | |
needs: build | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: docker build test | |
run: docker build --tag "${GITHUB_REPOSITORY}:${GITHUB_REF##*/}" . | |
- name: docker run test | |
run: docker run -v /tmp:/tmp "${GITHUB_REPOSITORY}:${GITHUB_REF##*/}" /tmp/out.json | |
- name: output assertion | |
run: | | |
FILE="/tmp/out.json" | |
if [ -f $FILE ];then | |
echo "$FILE exists" | |
else | |
echo "$FILE doesn't exist" | |
exit 1 | |
fi | |
FILE="/tmp/out.json.min.json" | |
if [ -f $FILE ];then | |
echo "$FILE exists" | |
else | |
echo "$FILE doesn't exist" | |
exit 1 | |
fi |