Skip to content

Commit 6accdb4

Browse files
committed
Update workflows: RHEL8 compatibility and Python 3.13
- pythonrelease.yml: Use Red Hat UBI8-minimal container for Linux builds with Python 3.9 for RHEL8 glibc compatibility - pythonrelease.yml: Update Windows/Mac builds to Python 3.13 - pythonapp.yml: Add Python 3.13 to test matrix and update lint job to Python 3.13
1 parent 79e4366 commit 6accdb4

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

.github/workflows/pythonapp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: "3.12"
16+
python-version: "3.13"
1717
- uses: psf/black@stable
1818
- name: Install flake8
1919
shell: bash
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ ubuntu-latest, macos-latest, windows-latest ]
33-
python: ["3.9", "3.10", "3.11", "3.12"]
33+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3434
steps:
3535
- uses: actions/checkout@v2
3636
- name: Set up Python

.github/workflows/pythonrelease.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
name: Build Release
3131
needs: ["create-release"]
3232
runs-on: ${{ matrix.os }}
33+
container: ${{ matrix.container }}
3334
strategy:
3435
fail-fast: false
3536
matrix:
@@ -40,20 +41,32 @@ jobs:
4041
include:
4142
- build: linux
4243
os: ubuntu-22.04
44+
container: registry.access.redhat.com/ubi8/ubi-minimal:latest
4345
zip: "Linux"
4446
- build: windows
4547
os: windows-latest
48+
container: null
4649
zip: "Windows"
4750
- build: mac
4851
os: macos-latest
52+
container: null
4953
zip: "Darwin"
5054
steps:
5155
- uses: actions/checkout@v2
52-
- name: Set up Python
56+
- name: Install Python and dependencies (Linux)
57+
if: matrix.build == 'linux'
58+
shell: bash
59+
run: |
60+
microdnf install -y python39 python39-pip make p7zip p7zip-plugins
61+
python3.9 -m pip install --upgrade pip
62+
if [ -f requirements_dev.txt ]; then python3.9 -m pip install -r requirements_dev.txt; fi
63+
- name: Set up Python (Windows/Mac)
64+
if: matrix.build != 'linux'
5365
uses: actions/setup-python@v2
5466
with:
55-
python-version: "3.11"
56-
- name: Install dependencies
67+
python-version: "3.13"
68+
- name: Install dependencies (Windows/Mac)
69+
if: matrix.build != 'linux'
5770
shell: bash
5871
run: |
5972
python -m pip install --upgrade pip
@@ -70,7 +83,14 @@ jobs:
7083
release_upload_url="$(cat artifacts/release-upload-url)"
7184
echo "RELEASE_UPLOAD_URL=$release_upload_url" >> $GITHUB_ENV
7285
echo "release upload url: $release_upload_url"
73-
- name: Build binary
86+
- name: Build binary (Linux)
87+
if: matrix.build == 'linux'
88+
shell: bash
89+
run: |
90+
python3.9 -m PyInstaller -F ./scripts/sperf --paths .
91+
7za a -tzip ./dist/sperf-Linux ./dist/sperf -mx0
92+
- name: Build binary (Windows/Mac)
93+
if: matrix.build != 'linux'
7494
shell: bash
7595
run: |
7696
make build

0 commit comments

Comments
 (0)