Skip to content

Run the test suite #273

Run the test suite

Run the test suite #273

Workflow file for this run

# Copyright (c) 2025 Sebastian Pipping <sebastian@pipping.org>
#
# Licensed under GNU Affero General Public License v3.0 or later
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Run the test suite
on:
pull_request:
push:
schedule:
- cron: '0 2 * * 5' # Every Friday at 2am
workflow_dispatch:
# Drop permissions to minimum for security
permissions:
contents: read
jobs:
run-tests:
name: Run the test suite
strategy:
matrix:
python-version: ['3.10', 3.13] # no particular need for in-between versions
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.1
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Run the test suite under coverage
run: |
set -x
python3 --version
python3 -m venv venv/
source venv/bin/activate
pip3 install .[tests]
pytocron --version
pytocron --help
coverage run -m pytest -v -s
coverage report