Skip to content

Commit

Permalink
CI: run tests for different pandas versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed May 10, 2024
1 parent b70ec82 commit 7da772e
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/pandas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test

on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.10' ]
pandas-version: [ '2.0.0', '2.1.0', '2.2.0']

steps:
- uses: actions/checkout@v4

- name: Cache emodb
uses: actions/cache@v4
with:
path: ~/audb
key: emodb-1.4.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Ubuntu - install libsndfile
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends --yes libsndfile1
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install "pandas==${{ matrix.pandas-version }}"
# TESTS
- name: Ubuntu - install ffmpeg/mediainfo
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends --yes ffmpeg mediainfo
- name: Install tests requirements
run: pip install -r tests/requirements.txt

- name: Test with pytest
run: python -m pytest

0 comments on commit 7da772e

Please sign in to comment.