Skip to content

Commit

Permalink
lint and release only python version defined in var, ci builds for la…
Browse files Browse the repository at this point in the history
…st versions
  • Loading branch information
dittmar committed Feb 26, 2024
1 parent 07700e8 commit 09c7656
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09c7656

Please sign in to comment.