Skip to content

Implementations rework #408

Implementations rework

Implementations rework #408

Workflow file for this run

name: Code Coverage [CodeCov]
on:
push:
branches:
- "main"
- "dev/[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches:
- "main"
- "dev/[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch: {}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python and Upgrade pip
uses: ./.github/actions/setup_python
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install -r requirements_dev.txt
pip freeze
pip check
- name: Test with coverage
run: |
python -m coverage run -a -m pytest --impl=bs4
python -m coverage run -a -m pytest --impl=lxml
python -m coverage run -a -m pytest --impl=selenium
- name: Report coverage
run: |
python -m coverage report
python -m coverage report --skip-covered --skip-empty --format=markdown >> $GITHUB_STEP_SUMMARY
- name: Upload coverage reports to Codecov
run: |
echo "Using codecov version: $(codecov --version)"
python -m codecov --verbose
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}