Merge pull request #93 from hartwork/dependabot/pre_commit/https-/git… #319
This file contains hidden or 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
| # 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6.0.1 | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.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 |