From 83bd1050d73dde0d658534c564bc3b5243cced2d 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 | 4 +--- 2 files changed, 2 insertions(+), 4 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..3100d468f 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -1,4 +1,4 @@ -name: pre-commit-lite +name: Pre-Commit on: workflow_dispatch: @@ -11,6 +11,4 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: "3.*" - uses: pre-commit/action@v3.0.1