Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/validate-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Version Check

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

jobs:
check-versions:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install yq for toml parsing
run: pip install yq

- name: Read Python versions from pyproject.toml
id: versions
run: |
PYTHON_VERSION=$(tomlq -r .tool.poetry.dependencies.python < pyproject.toml | tr -d '"')
MATPLOTLIB_VERSION=$(tomlq -r .tool.poetry.dependencies.matplotlib < pyproject.toml | tr -d '"')

echo "python_version=$PYTHON_VERSION" >> $GITHUB_OUTPUT
echo "matplotlib_version=$MATPLOTLIB_VERSION" >> $GITHUB_OUTPUT

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ steps.versions.outputs.python_version }}
Loading