Fedir Zadniprovskyi 2024-07-03
ci: add test action
@3b64eb87a19d92e9cb8e094c13f9ff1415809952
 
.github/workflows/test.yaml (added)
+++ .github/workflows/test.yaml
@@ -0,0 +1,19 @@
+name: test
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - master
+  pull_request:
+jobs:
+  pytest:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-python@v5
+        with:
+          python-version: 3.12
+      - run: pip install uv
+      - run: uv pip install --no-cache --system -r requirements-dev.txt
+      # TODO: figure out why `pytest` doesn't discover tests in `faster_whisper_server` directory by itself
+      - run: pytest faster_whisper_server/* tests
Add a comment
List