forked from speaches-ai/speaches
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.3 KB
/
test.yaml
File metadata and controls
34 lines (34 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: test
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "src/**"
- "tests/**"
- ".github/workflows/test.yaml"
pull_request:
paths:
- "src/**"
- "tests/**"
- ".github/workflows/test.yaml"
jobs:
pytest:
strategy:
fail-fast: false # Continue running jobs even if one fails
matrix:
# https://docs.github.com/en/actions/concepts/runners/about-larger-runners#about-macos-larger-runners
# NOTE: macos-15-large was failing with the following error:
# hint: You're on macOS (`macosx_15_0_x86_64`), but `ctranslate2` (v4.5.0) only has wheels for the following platforms: `manylinux_2_17_aarch64`, `manylinux_2_17_x86_64`, `manylinux2014_aarch64`, `manylinux2014_x86_64`, `macosx_11_0_arm64`, `win_amd64`; consider adding your platform to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels
os: [ubuntu-24.04-4core-x86, ubuntu-24.04-4core-arm64, macos-15-xlarge]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
activate-environment: true
- run: uv python install
- run: uv sync --all-extras
- run: uv run pytest -m "not requires_openai" tests/