Skip to content

Commit 1b9dac8

Browse files
committed
Fix GitHub actions
1 parent e43bfd2 commit 1b9dac8

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/python.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-latest, macos-latest, windows-latest]
12-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
11+
os: [ubuntu-latest, macos-latest]
12+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1313

1414
steps:
1515
- uses: actions/checkout@v2
@@ -26,8 +26,9 @@ jobs:
2626
2727
- name: Generate API
2828
run: |
29-
python setup.py generate --api
29+
make venv
30+
make api
3031
3132
- name: Run tests
3233
run: |
33-
tox
34+
tox

tests/filters/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
class Client:
20-
@staticmethod
21-
async def get_me():
22-
return User("username")
20+
def __init__(self):
21+
self.username = "username"
22+
23+
async def get_me(self):
24+
return User(self.username)
2325

2426

2527
class User:

0 commit comments

Comments
 (0)