From 8e425df7a80de942eaf6005fda460cb40f80d8c4 Mon Sep 17 00:00:00 2001 From: Chithub2023 <132055730+Chithub2023@users.noreply.github.com> Date: Sat, 29 Apr 2023 14:31:37 +0630 Subject: [PATCH 1/3] Update bot_configuration.py --- viberbot/api/bot_configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viberbot/api/bot_configuration.py b/viberbot/api/bot_configuration.py index f9a5c9a..456d155 100644 --- a/viberbot/api/bot_configuration.py +++ b/viberbot/api/bot_configuration.py @@ -1,7 +1,7 @@ class BotConfiguration(object): def __init__(self, auth_token, name, avatar): - self._auth_token = auth_token - self._name = name + self._auth_token = 50e8d1281ca7e5c6-2e462af8e7fda68e-93203ff5ca380e61 + self._name = Codes24 self._avatar = avatar @property From 1af7aadb2af3c77335aca88b5feefe982064d5dd Mon Sep 17 00:00:00 2001 From: Chithub2023 <132055730+Chithub2023@users.noreply.github.com> Date: Mon, 1 May 2023 15:43:01 +0630 Subject: [PATCH 2/3] Create python-app.yml --- .github/workflows/python-app.yml | 74 ++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..d401a4a --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,74 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + 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 +- name: Setup Go environment + uses: actions/setup-go@v4.0.0 + with: + # The Go version to download (if necessary) and use. Supports semver spec and ranges. + go-version: # optional + # Path to the go.mod or go.work file. + go-version-file: # optional + # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec + check-latest: # optional + # Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. + token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} + # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. + cache: # optional, default is true + # Used to specify the path to a dependency file - go.sum + cache-dependency-path: # optional + # Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default. + architecture: # optional + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.2 + with: + # Artifact name + name: # optional, default is artifact + # A file, directory or wildcard pattern that describes what to upload + path: + # The desired behavior if no files are found using the provided path. +Available Options: + warn: Output a warning but do not fail the action + error: Fail the action with an error message + ignore: Do not output any warnings or errors, the action does not fail + + if-no-files-found: # optional, default is warn + # Duration after which artifact will expire in days. 0 means using default retention. +Minimum 1 day. Maximum 90 days unless changed from the repository settings page. + + retention-days: # optional From c071a9c1c04adcca3e9a10aaa7732a1d5f47adec Mon Sep 17 00:00:00 2001 From: Chithub2023 <132055730+Chithub2023@users.noreply.github.com> Date: Mon, 1 May 2023 17:00:19 +0630 Subject: [PATCH 3/3] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4175da6 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/configuration-reference/#executor-job + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Orchestrate jobs using workflows +# See: https://circleci.com/docs/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello