diff --git a/.github/workflows/python_package.yml b/.github/workflows/python_package.yml index 9dd53fb..56ad045 100644 --- a/.github/workflows/python_package.yml +++ b/.github/workflows/python_package.yml @@ -20,11 +20,16 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pipenv - pipenv install --system --deploy + pip install poetry + poetry install + - name: Lint with flake8 + run: | + pip install flake8 + # 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: | - pipenv install --system --deploy - pip install pytest cd tests - pytest + poetry run pytest diff --git a/.github/workflows/update_docker_description.yml b/.github/workflows/update_docker_description.yml deleted file mode 100644 index fbc11c5..0000000 --- a/.github/workflows/update_docker_description.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Update Docker Hub Description -on: [release] -jobs: - dockerHubDescription: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Docker Hub Description - uses: peter-evans/dockerhub-description@v4.0.0 - env: - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} - DOCKERHUB_REPOSITORY: markusressel/keel-telegram-bot