Skip to content

Merge pull request #539 from hartwork/dependabot/pip/certifi-2025.1.31 #1524

Merge pull request #539 from hartwork/dependabot/pip/certifi-2025.1.31

Merge pull request #539 from hartwork/dependabot/pip/certifi-2025.1.31 #1524

name: Run the test suite
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
install_and_run:
name: Run the test suite
strategy:
fail-fast: false
matrix:
python-version: [3.9, 3.13] # no need for anything in between
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |-
python3 -m venv venv/
source venv/bin/activate
pip3 install \
--disable-pip-version-check \
--no-warn-script-location \
-r requirements.txt
pip3 check
# Ensure that even indirect dependencies are fully pinned
diff -u0 \
<(sed -e '/^#/d' -e '/^$/d' requirements.txt | sort -f) \
<(pip3 freeze | sort -f)
- name: Run the test suite
run: |-
source venv/bin/activate
coverage run -m pytest -v --doctest-modules
coverage report --show-missing | tee coverage.txt
coverage html
- name: Upload HTML coverage report as an artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: "coverage_python_${{ matrix.python-version }}" # .zip
path: |
coverage.txt
htmlcov/
if-no-files-found: error