mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 08:36:27 +00:00
Fix GitHub actions
This commit is contained in:
parent
e43bfd276a
commit
1b9dac8ad3
9
.github/workflows/python.yml
vendored
9
.github/workflows/python.yml
vendored
@ -8,8 +8,8 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -26,8 +26,9 @@ jobs:
|
||||
|
||||
- name: Generate API
|
||||
run: |
|
||||
python setup.py generate --api
|
||||
make venv
|
||||
make api
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
tox
|
||||
tox
|
@ -17,9 +17,11 @@
|
||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
class Client:
|
||||
@staticmethod
|
||||
async def get_me():
|
||||
return User("username")
|
||||
def __init__(self):
|
||||
self.username = "username"
|
||||
|
||||
async def get_me(self):
|
||||
return User(self.username)
|
||||
|
||||
|
||||
class User:
|
||||
|
Loading…
Reference in New Issue
Block a user