Skip to content

Bump codecov/codecov-action from 4 to 5 (#65) #94

Bump codecov/codecov-action from 4 to 5 (#65)

Bump codecov/codecov-action from 4 to 5 (#65) #94

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths:
- ".github/workflows/tests.yml"
- "telegram_wallet_pay/**"
- "tests/**"
- "examples/**"
- "codecov.yaml"
- "pyproject.toml"
pull_request:
branches:
- main
paths:
- ".github/workflows/tests.yml"
- "telegram_wallet_pay/**"
- "tests/**"
- "examples/**"
- "codecov.yaml"
- "pyproject.toml"
jobs:
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- 'pypy3.9'
- 'pypy3.10'
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install project dependencies
run: pip install -e .[test]
- name: Run tests
run: pytest --cov=telegram_wallet_pay --cov-report=xml
- name: Upload coverage data
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: unittests
name: py-${{ matrix.python-version }}-${{ matrix.os }}
fail_ci_if_error: true