test: reorganize pytest testing (mult. OSes & Python vesions) #8
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: CI_pytest_datawarrior_saturate_murcko_scaffolds | |
# name : pytest.yml | |
# purpose : regularly run pytest on the saturator script | |
# date : [2024-03-21 Thu] | |
# edit : [2024-11-11 Mon] | |
on: | |
push: | |
branches: | |
- main # updates to enter the principal branch "main" | |
pull_request: | |
branches: | |
- main # PRs to enter the principal branch "main" | |
workflow_dispatch: # provide a manual trigger | |
schedule: | |
- cron: "0 0 1 * *" # once each 1st of a month, at 00:00 UTC (cf. https://crontab.guru/) | |
jobs: | |
test: | |
strategy: | |
matrix: | |
# for a factorial test, an explicit selection of GitHUb runner images | |
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images | |
# state of commit 23478d3 as visited on 2024-11-11 Mon | |
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-2019, windows-2022, macos-14] | |
python-version: ["3.10", "3.12"] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 3 # Timeout for each job individually | |
steps: | |
- uses: actions/checkout@v4 | |
# by [2024-10-23 Wed], this version possibly will be considered "old", cf. | |
# https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies with PyPI | |
run: pip install pytest | |
- name: Run the check with pytest | |
run: python -m pytest | |