Merge pull request #207 from sewcio543/selectors/ielement #412
Workflow file for this run
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: 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 }} |