fix: update chat member info properly #136
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
paths: | |
- 'efb_telegram_master/**.py' | |
- 'tests/**.py' | |
- 'setup.py' | |
pull_request: | |
paths: | |
- 'efb_telegram_master/**.py' | |
- 'tests/**.py' | |
- 'setup.py' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.6, 3.7, 3.8] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install '.[tests,tgs]' | |
mypy --install-types --non-interactive -p efb_telegram_master | |
- name: Install binary dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y ffmpeg libmagic-dev libwebp6 | |
- name: Check with mypy | |
run: | | |
mypy -p efb_telegram_master --ignore-missing-imports | |
- name: Test with pytest (unit tests only) | |
env: | |
TOKEN: ${{ secrets.TELEGRAM_TOKEN }} | |
ADMINS: ${{ secrets.TELEGRAM_ADMINS }} | |
GROUPS: ${{ secrets.TELEGRAM_GROUPS }} | |
CHANNELS: ${{ secrets.TELEGRAM_CHANNELS }} | |
USER_SESSION: ${{ secrets.TELEGRAM_USER_SESSION }} | |
API_ID: ${{ secrets.TELEGRAM_API_ID }} | |
API_HASH: ${{ secrets.TELEGRAM_API_HASH }} | |
run: | | |
pytest -vv -r a -l --color=yes |