Skip to content

Actions(deps): Bump actions/cache from 5.0.2 to 5.0.3 #2013

Actions(deps): Bump actions/cache from 5.0.2 to 5.0.3

Actions(deps): Bump actions/cache from 5.0.2 to 5.0.3 #2013

Workflow file for this run

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.10", 3.14] # no need for anything in between
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.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@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: "coverage_python_${{ matrix.python-version }}" # .zip
path: |
coverage.txt
htmlcov/
if-no-files-found: error