-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
#5 highlights the importance of checking the pypi releases across all python versions, operating systems. Unfortunately we cannot test old versions of macOS (macOS-13 runners were recently deprecated) or linux, but checking install from pypi once a week can't hurt. The below script can be used as a base:
name: Weekly PyPI rallyplot check
on:
schedule:
# Every Monday at 03:00 UTC – tweak as you like
- cron: '0 3 * * 1'
# Allow manual runs from the Actions tab
workflow_dispatch:
jobs:
pypi-simple-rallyplot:
name: PyPI check (${{ matrix.os }}, py${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-latest-intel, windows-latest]
# From pyproject.toml: requires-python >=3.10, classifiers 3.10–3.13
python-version: ['3.10', '3.11', '3.12', '3.13']
env:
# Helps matplotlib not choke on headless runners, if your example uses it
MPLBACKEND: Agg
steps:
- name: Check out repo (for simple_rallyplot.py)
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install rallyplot from PyPI (with dev extras)
run: python -m pip install "rallyplot[dev]"
- name: Run simple_rallyplot example
# Adjust path if simple_rallyplot.py lives somewhere else
run: python docs/simple_rallyplot.py
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels