Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Python Setup'
description: 'Installs Python with sensible default values'
inputs:
architecture:
description: "The architecture of Python to set up"
default: ${{ runner.arch }}
version:
description: "The version of Python to set up"
default: '3.13'
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v7
with:
cache: pip
python-version: ${{ inputs.version }}
check-latest: true
architecture: ${{ inputs.architecture }}
5 changes: 1 addition & 4 deletions .github/workflows/_job_cx-freeze-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
- uses: ./.github/actions/setup-python
with:
cache: pip
python-version: '3.13'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_job_cx-freeze-dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
- uses: ./.github/actions/setup-python
with:
cache: pip
python-version: '3.13'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
env:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_job_cx-freeze-msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
- uses: ./.github/actions/setup-python
with:
cache: pip
python-version: '3.13'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_job_nuitka-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
- uses: ./.github/actions/setup-python
with:
cache: pip
python-version: '3.13'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_job_nuitka-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
- uses: ./.github/actions/setup-python
with:
cache: pip
python-version: '3.13'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
env:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_job_nuitka-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
- uses: ./.github/actions/setup-python
with:
cache: pip
python-version: '3.13'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
run: |
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/_job_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v7
with:
cache: pip
python-version: '3.13'
check-latest: true
- uses: ./.github/actions/setup-python
- name: Install build dependencies
run: |
pip3 install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.version }}
version: ${{ matrix.version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down
Loading