Skip to content

Add Resample functionality #1426

Add Resample functionality

Add Resample functionality #1426

Workflow file for this run

name: Test
on:
pull_request:
paths-ignore:
- "docs/**"
push:
branches: [main]
workflow_call:
jobs:
check:
name: Run checks
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v4.0.0
- uses: astral-sh/ruff-action@v4.0.0
with:
args: "format --diff"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Check license headers
run: python .github/check_license_headers.py
- name: Get latest uv version
id: uv-version
run: |
LATEST=$(curl -s https://api.github.com/repos/astral-sh/uv/releases/latest | jq -r '.tag_name' | sed 's/^v//')
echo "version=$LATEST" >> $GITHUB_OUTPUT
echo "Latest uv version: $LATEST"
- name: Check uv_build compatibility
env:
UV_LATEST_VERSION: ${{ steps.uv-version.outputs.version }}
run: |
pip install packaging
python .github/check_uv_build.py
test:
needs: check
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
os: [ubuntu-24.04, macos-15, windows-2022]
name: Run tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux packages
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
libxkbcommon-x11-0 xvfb libxcb-randr0 \
libxcb-render-util0 libxcb-xinerama0 libegl1 \
libxcb-shape0 libxcb-cursor0
- name: Install the project
run: uv sync --locked --all-extras
- name: Run tests
run: uv run pytest -W error tests