mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 23:27:49 +01:00
9c50a38512
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com> Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Bot API Tests
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- telegram/**
|
|
- tests/**
|
|
push:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
# Run monday and friday morning at 03:07 - odd time to spread load on GitHub Actions
|
|
- cron: '7 3 * * 1,5'
|
|
|
|
jobs:
|
|
check-conformity:
|
|
name: check-conformity
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.11]
|
|
os: [ubuntu-latest]
|
|
fail-fast: False
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -W ignore -m pip install --upgrade pip
|
|
python -W ignore -m pip install .[all]
|
|
python -W ignore -m pip install -r requirements-unit-tests.txt
|
|
- name: Compare to official api
|
|
run: |
|
|
pytest -v tests/test_official/test_official.py --junit-xml=.test_report_official.xml
|
|
exit $?
|
|
env:
|
|
TEST_OFFICIAL: "true"
|
|
shell: bash --noprofile --norc {0}
|
|
|
|
- name: Test Summary
|
|
id: test_summary
|
|
uses: test-summary/action@v2.4
|
|
if: always() # always run, even if tests fail
|
|
with:
|
|
paths: .test_report_official.xml
|