Skip to content

Commit 2b4109c

Browse files
committed
updated workflows for free-threading
1 parent 87c7104 commit 2b4109c

2 files changed

Lines changed: 23 additions & 41 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@v6.2.0
1818
with:
19-
python-version: "3.13"
19+
python-version: "3.14t"
2020

2121
- name: Create virtual environment
2222
run: |
@@ -32,24 +32,7 @@ jobs:
3232
run: brew install create-dmg
3333

3434
- name: Build macOS installer
35-
working-directory: dev
36-
run: |
37-
# Read version from _version.py
38-
app_version=$(python -c "import sys; sys.path.insert(0, '../src'); from _version import __version__; print(__version__)")
39-
# Update Info.plist
40-
plutil -replace CFBundleShortVersionString -string $app_version ../dist/AppUsageGUI.app/Contents/Info.plist
41-
# Move .app into folder for DMG
42-
mv ../dist/AppUsageGUI.app ../dist/AppUsageGUI/
43-
# Create DMG
44-
create-dmg \
45-
--volicon ../src/core/resources/icon.icns \
46-
--volname AppUsageGUIsetup \
47-
--window-pos 200 190 \
48-
--window-size 800 400 \
49-
--app-drop-link 600 185 \
50-
--eula ../LICENSE.txt \
51-
../dist/AppUsageGUI_v${app_version}_macOS_setup.dmg \
52-
../dist/
35+
run: bash dev/macos_installer.sh
5336

5437
- name: Upload macOS installer
5538
uses: actions/upload-artifact@v4
@@ -64,9 +47,9 @@ jobs:
6447
uses: actions/checkout@v4
6548

6649
- name: Set up Python
67-
uses: actions/setup-python@v5
50+
uses: actions/setup-python@v6.2.0
6851
with:
69-
python-version: "3.13"
52+
python-version: "3.14t"
7053

7154
- name: Create virtual environment
7255
run: |

.github/workflows/python-app.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,31 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
permissions:
1313
contents: read
1414

1515
jobs:
1616
build:
17-
1817
runs-on: ubuntu-latest
1918

2019
steps:
21-
- uses: actions/checkout@v4
22-
- name: Set up Python 3.10
23-
uses: actions/setup-python@v3
24-
with:
25-
python-version: "3.10"
26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install flake8 pytest
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31-
- name: Lint with flake8
32-
run: |
33-
# stop the build if there are Python syntax errors or undefined names
34-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
20+
- uses: actions/checkout@v4
21+
- name: Set up Python 3.14t
22+
uses: actions/setup-python@v6.2.0
23+
with:
24+
python-version: "3.14t"
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install flake8 pytest
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Lint with flake8
31+
run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

0 commit comments

Comments
 (0)