Fix GitHub actions

This commit is contained in:
Dan 2022-04-24 14:50:00 +02:00
parent e43bfd276a
commit 1b9dac8ad3
2 changed files with 10 additions and 7 deletions

View File

@ -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,7 +26,8 @@ jobs:
- name: Generate API
run: |
python setup.py generate --api
make venv
make api
- name: Run tests
run: |

View File

@ -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: