Skip to content

Commit 5f2c689

Browse files
committed
IMPROVEMENT: Use python 3.12 everywhere
1 parent ccd7c7d commit 5f2c689

File tree

8 files changed

+56
-22
lines changed

8 files changed

+56
-22
lines changed

.github/workflows/codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
uses: actions/checkout@v4
1010
with:
1111
fetch-depth: 0
12+
1213
- name: Set up Python 3.12
1314
uses: actions/setup-python@v4
1415
with:
1516
python-version: '3.12'
17+
1618
- name: Install dependencies
1719
run: |
1820
python -m pip install --upgrade pip setuptools wheel

.github/workflows/coverage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ jobs:
1212
# os: [ubuntu-latest, macos-latest, windows-latest]
1313
# python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
1414
os: [ubuntu-latest]
15-
python-version: ["3.10"]
15+
python-version: ["3.12"]
1616
steps:
17-
- uses: actions/checkout@v4
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
1822
- name: Set up Python ${{ matrix.python-version }}
1923
uses: actions/setup-python@v4
2024
with:

.github/workflows/pylint.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.8", "3.12.3"]
10+
python-version: ["3.8", "3.12"]
1111
steps:
12-
- uses: actions/checkout@v4
12+
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
1318
- name: Set up Python ${{ matrix.python-version }}
1419
uses: actions/setup-python@v4
1520
with:
1621
python-version: ${{ matrix.python-version }}
22+
1723
- name: Install dependencies
1824
run: |
1925
python -m pip install --upgrade pip
2026
pip install pylint
27+
2128
- name: Analysing the code with pylint
2229
run: |
2330
pylint $(git ls-files '*.py')

.github/workflows/python-cleanliness.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.10"]
14+
python-version: ['3.12']
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1821

1922
- name: Install dependencies
2023
run: |

.github/workflows/python-publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
id-token: write
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
2427

25-
- name: Set up Python
28+
- name: Set up Python 3.12
2629
uses: actions/setup-python@v4
2730
with:
28-
python-version: '3.10'
31+
python-version: '3.12'
2932

3033
- name: Install dependencies
3134
run: |
32-
python -m pip install -U pip
33-
python -m pip install -U wheel
34-
python -m pip install -U pymavlink
35-
pip install build
35+
python -m pip install -U pip wheel pymavlink
3636
pip install -U .
3737
3838
- name: Build package

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ jobs:
1111
# os: [ubuntu-latest, macos-latest, windows-latest]
1212
# python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
1313
os: [ubuntu-latest]
14-
python-version: ["3.10"]
14+
python-version: ["3.12"]
1515
steps:
16-
- uses: actions/checkout@v4
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
1721
- name: Set up Python ${{ matrix.python-version }}
1822
uses: actions/setup-python@v4
1923
with:

.github/workflows/unittests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
# os: [ubuntu-latest, macos-latest, windows-latest]
1414
# python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"]
1515
os: [ubuntu-latest]
16-
python-version: ["3.10"]
16+
python-version: ["3.12"]
1717
steps:
18-
- uses: actions/checkout@v4
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
1923
- name: Set up Python ${{ matrix.python-version }}
2024
uses: actions/setup-python@v4
2125
with:

.github/workflows/windows_build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,49 +17,58 @@ jobs:
1717
runs-on: 'windows-latest'
1818
strategy:
1919
matrix:
20-
python-version: ['3.10']
20+
python-version: ['3.12']
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- name: Checkout
24+
uses: actions/checkout@v4
2425
with:
25-
submodules: 'recursive'
26-
- uses: actions/checkout@v4
26+
fetch-depth: 0
27+
2728
- name: Set up Python ${{ matrix.python-version }}
2829
uses: actions/setup-python@v4
2930
with:
3031
python-version: ${{ matrix.python-version }}
32+
3133
- name: Install dependencies
3234
run: |
3335
python -m pip install -U wheel setuptools pip
3436
python -m pip install -U pywin32 lxml pymavlink pyserial Pillow
35-
python -m pip install -U pyinstaller packaging
37+
python -m pip install -U pyinstaller packaging
38+
3639
- name: Download Inno Setup installer
3740
run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.2.0.exe
41+
3842
- name: Install Inno Setup
3943
run: ./installer.exe /verysilent /allusers /dir=inst
44+
4045
- name: Build MethodicConfigurator
4146
run: |
4247
python -m pip install . --user
4348
python -m pip list
49+
4450
- name: Prepare installer
4551
run: |
4652
cd MethodicConfigurator
4753
copy ..\\windows\\ardupilot_methodic_configurator.spec
4854
pyinstaller --clean ardupilot_methodic_configurator.spec
4955
del ardupilot_methodic_configurator.spec
56+
5057
- name: Build installer
5158
run: |
5259
cd windows
5360
$env:VERSION=$(python return_version.py)
5461
python return_version.py > version.txt
5562
ISCC.exe /dMyAppVersion=$env:VERSION ardupilot_methodic_configurator.iss
5663
ls Output
64+
5765
- name: Archive build
5866
uses: actions/upload-artifact@v4
5967
with:
6068
name: MethodicConfiguratorInstaller
6169
path: windows/Output
6270
retention-days: 7
71+
6372
- name: Pre Release
6473
uses: "marvinpinto/action-automatic-releases@latest"
6574
if: github.ref == 'refs/heads/master'
@@ -69,6 +78,7 @@ jobs:
6978
title: "Development Build"
7079
files: windows/Output/*.*
7180
repo_token: "${{ secrets.GITHUB_TOKEN }}"
81+
7282
- name: Release
7383
uses: "marvinpinto/action-automatic-releases@latest"
7484
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)