From 9e84be74ea90df7002bb89ffc9809c0e3fb5fc34 Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Fri, 5 Jul 2024 16:04:57 +0200 Subject: [PATCH] Read python version from `pyproject.toml` --- .github/workflows/ci_cd.yml | 2 +- .github/workflows/style.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 1ef3f5f33..216183e4f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version-file: "pyproject.toml" - name: Install Python tools run: pip install build twine diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 70b66a981..612219c03 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -12,5 +12,5 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.*" + python-version-file: "pyproject.toml" - uses: pre-commit/action@v3.0.1