From 09c76565b23c27ecaa1d109f1d0f286dd51c910b Mon Sep 17 00:00:00 2001 From: dittmar Date: Mon, 26 Feb 2024 22:10:07 +0100 Subject: [PATCH] lint and release only python version defined in var, ci builds for last versions --- .github/workflows/ci.yml | 4 +++- .github/workflows/pylint.yml | 7 ++----- .github/workflows/release.yml | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e947a0a..4e575ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + # build for (last 5) major supported versions to ensure compatibility to some degree, + # but really recommended, linted and deployed is only the latest + python-version: ["3.8", "3.9", "3.10", "3.11", ${{ vars.PYTHON_VERSION }}] steps: - name: Checkout diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 1e6ddce..d193cd7 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -5,15 +5,12 @@ on: [push] jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python uses: actions/setup-python@v3 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ vars.PYTHON_VERSION }} - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9024010..caed890 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v3 with: - python-version: '3.x' + python-version: ${{ vars.PYTHON_VERSION }} # version management - name: Install poetry