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 }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"] python-version: ["3.7", "3.8", "3.9", "3.10"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -26,7 +26,8 @@ jobs:
- name: Generate API - name: Generate API
run: | run: |
python setup.py generate --api make venv
make api
- name: Run tests - name: Run tests
run: | run: |

View File

@ -17,9 +17,11 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
class Client: class Client:
@staticmethod def __init__(self):
async def get_me(): self.username = "username"
return User("username")
async def get_me(self):
return User(self.username)
class User: class User: