From 6382c870a4ddabdc48a69a92905de0fe2edb4b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 22 Jul 2024 16:39:59 +0200 Subject: [PATCH] Update test workflow --- .github/workflows/pr.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a5344c03..c034033a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,5 @@ -name: pr +name: Test + on: pull_request jobs: @@ -8,36 +9,28 @@ jobs: - uses: actions/checkout@v2 # Run isort + black formatter - name: Python Code Formatter - uses: descriptinc/python-format-action@master + uses: descriptinc/python-format-action@main build: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 with: lfs: true - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v1 - id: cache - with: - path: ~/.cache/pip - key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/*requirements.txt') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.python-version }}-pip- - - name: Checkout LFS objects - run: git lfs checkout + cache: pip + cache-dependency-path: setup.py - name: Install binaries run: | sudo apt-get update - sudo apt-get install ffmpeg - sudo apt-get install libsndfile1-dev libsox-dev libsox-fmt-mp3 + sudo apt-get install ffmpeg libsndfile1-dev libsox-dev libsox-fmt-mp3 python -m pip install --upgrade pip pip install wheel - name: Install recent FFMPEG