-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Started to updated dependencies * Pytest, requests * Added pre-commit, ran pre-commit, updated chat_id -> user_chat_id in chatjoinrequests, added constructors to extract chat data and chat request data
- Loading branch information
1 parent
676dbb2
commit 6f8542a
Showing
17 changed files
with
251 additions
and
174 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
name: Deployment | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Publish"] | ||
branches: [master] | ||
types: | ||
- completed | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy_to_production: | ||
name: Connect and deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Connect And Pull | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.PROD_HOST }} | ||
username: root | ||
key: ${{ secrets.PROD_KEY }} | ||
passphrase: ${{ secrets.PROD_PASSWD }} | ||
script: | | ||
cd /opt/app | ||
./refresh ringo | ||
name: Deployment | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Publish"] | ||
branches: [master] | ||
types: | ||
- completed | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy_to_production: | ||
name: Connect and deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Connect And Pull | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.PROD_HOST }} | ||
username: root | ||
key: ${{ secrets.PROD_KEY }} | ||
passphrase: ${{ secrets.PROD_PASSWD }} | ||
script: | | ||
cd /opt/app | ||
./refresh ringo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Check pre-commit | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files --show-diff-on-failure --verbose | ||
|
||
- name: Pre-commit failed ! Read this | ||
if: failure() | ||
run: | | ||
echo 'To ensure your code is properly formatted, run: pip install pre-commit; pre-commit install;' | ||
echo 'Fix your current code with: pre-commit run --all-files' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
workflow_run: | ||
workflows: ["Test"] | ||
branches: [master] | ||
types: | ||
types: | ||
- completed | ||
|
||
workflow_dispatch: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: | ||
- "--fix=lf" | ||
|
||
- repo: https://github.com/myint/autoflake | ||
rev: v2.1.1 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
- "--in-place" | ||
- "--remove-all-unused-imports" | ||
- "--remove-unused-variables" | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: "5.12.0" | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: "23.3.0" | ||
hooks: | ||
- id: black |
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
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
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
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
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
Oops, something went wrong.