-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.46 KB
/
pyrofork.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: PyroFork (t.me/tgLibs) Benchmark Testing Tool
on:
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository contents
uses: actions/checkout@v4
- name: Setup Python Version
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Run script
env:
TG_API_ID: ${{ secrets.TG_API_ID }}
TG_API_HASH: ${{ secrets.TG_API_HASH }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_SESSION: ${{ secrets.TG_SESSION }}
TG_FLOOD_SLEEP_THRESHOLD: ${{ secrets.TG_FLOOD_SLEEP_THRESHOLD }}
TG_MESSAGE_LINK: ${{ secrets.TG_MESSAGE_LINK }}
run: |
echo "Beginning Pyrogram test"
mkdir -p outputs
pip install --force-reinstall https://github.com/Mayuri-Chan/pyrofork/archive/ecf4699.zip https://github.com/Mayuri-Chan/tgcrypto-pyrofork/archive/f765c80.zip > /dev/null 2>&1
P=$(python scripts/python/p2.py)
pip uninstall -y pyrofork TgCrypto-pyrofork > /dev/null 2>&1
echo "${P}" > outputs/pyrofork.json
- name: Commit and push changes
run: |
git config pull.rebase true
git config user.email "[email protected]"
git config user.name "GitHub Actions <PyroFork>"
git add outputs/ -A
git commit -m "update PyroFork bench"
git pull origin master
git push origin master