Merge pull request #291 from chkware/dependabot/pip/black-24.3.0 #47
This file contains 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: Run coverage test and generate report | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: ~ | |
jobs: | |
coverage: | |
name: Runs on ubuntu-latest with 3.11.0 | |
runs-on: ubuntu-latest | |
if: ${{ ! github.event.pull_request.draft }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.11.7 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.7' | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -r requirements-dev.txt && pip install -U pytest-cov coverage-lcov | |
- name: Run tests | |
run: python -m pytest --cov=./chk --cov-report xml && coverage-lcov | |
- name: Coveralls github action | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |