Skip to content

Commit c2e3d8d

Browse files
Upgrade Python support from 3.8-3.10 to 3.10-3.12 (#269)
* Adapt actions to run with 3.10-3.12 * Upgrade matplotlib * Upgrade matplotlib * Remove comments * Remove whitespace * Change python versions to string Co-authored-by: Juan Coria <juanmc2005@hotmail.com> * Remove custom repository for ffmpeg in workflows * Apply suggestions from code review --------- Co-authored-by: Juan Coria <juanmc2005@hotmail.com>
1 parent 0a4febd commit c2e3d8d

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/pytest.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,23 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212

13+
strategy:
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12"]
16+
1317
steps:
1418
- name: Checkout code
1519
uses: actions/checkout@v3
1620

17-
- name: Set up Python
21+
- name: Set up Python ${{ matrix.python-version }}
1822
uses: actions/setup-python@v3
1923
with:
20-
python-version: '3.10'
24+
python-version: ${{ matrix.python-version }}
2125

2226
- name: Install apt dependencies
2327
run: |
24-
sudo add-apt-repository ppa:savoury1/ffmpeg4
2528
sudo apt-get update
26-
sudo apt-get -y install ffmpeg libportaudio2=19.6.0-1.1
29+
sudo apt-get -y install ffmpeg libportaudio2
2730
2831
- name: Install pip dependencies
2932
run: |

.github/workflows/quick-runs.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.8", "3.10"]
17+
python-version: ["3.10", "3.11", "3.12"]
1818

1919
steps:
2020
- uses: actions/checkout@v3
@@ -31,9 +31,8 @@ jobs:
3131
wget --no-verbose --show-progress --continue -O rttms/ES2002b_long.rttm https://raw.githubusercontent.com/pyannote/AMI-diarization-setup/main/only_words/rttms/train/ES2002b.rttm
3232
- name: Install apt dependencies
3333
run: |
34-
sudo add-apt-repository ppa:savoury1/ffmpeg4
3534
sudo apt-get update
36-
sudo apt-get -y install ffmpeg libportaudio2=19.6.0-1.1 sox
35+
sudo apt-get -y install ffmpeg libportaudio2 sox
3736
- name: Install pip dependencies
3837
run: |
3938
python -m pip install --upgrade pip

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy>=1.20.2,<2.0.0
2-
matplotlib>=3.3.3,<3.6.0
2+
matplotlib>=3.3.3,<4.0.0
33
rx>=3.2.0
44
scipy>=1.6.0
55
sounddevice>=0.4.2

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package_dir=
2121
packages=find:
2222
install_requires=
2323
numpy>=1.20.2,<2.0.0
24-
matplotlib>=3.3.3,<3.6.0
24+
matplotlib>=3.3.3,<4.0.0
2525
rx>=3.2.0
2626
scipy>=1.6.0
2727
sounddevice>=0.4.2

0 commit comments

Comments
 (0)