Skip to content

Release 2.5.3

Release 2.5.3 #152

Workflow file for this run

#
# trans-tool
# The translation files checker and syncing tool.
#
# Copyright ©2021 Marcin Orlowski <mail [@] 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.8'
steps:
# https://github.com/marketplace/actions/checkout
- name: "Checkout sources"
uses: actions/checkout@v2
- name: "Setup Python"
uses: actions/setup-python@master
with:
python-version: 3.8
- name: "Generate coverage report"
run: |
python -m pip install --upgrade pip
pip install pytest
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