Skip to content

Release 2.5.3

Release 2.5.3 #160

Workflow file for this run

#
# trans-tool
# The translation files checker and syncing tool.
#
# Copyright ©2021-2023 Marcin Orlowski <MarcinOrlowski.com>
# https://github.com/MarcinOrlowski/trans-tool/
#
name: "Coverage"
on:
push:
branches: [ master ]
pull_request:
branches: [ master, dev ]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ ubuntu-latest, macos-latest, windows-latest ]
os: [ ubuntu-latest ]
env:
OS: ${{ matrix.os }}
PYTHON: '3.11'
steps:
# https://github.com/marketplace/actions/checkout
- name: "Checkout sources"
uses: actions/checkout@v4
- name: "Setup Python"
uses: actions/setup-python@master
with:
python-version: 3.11
- name: "Generate coverage report"
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install pytest-cov
echo "****************************************"
python --version
pytest --version
echo "****************************************"
pytest --cov=./ --cov-report=xml
# https://github.com/marketplace/actions/codecov
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
# token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
# name: codecov-umbrella
# path_to_write_report: ./coverage/codecov_report.txt
verbose: true