Skip to content

Commit 4702eb4

Browse files
authored
Merge pull request #1 from razumau/ci_workflow
add CI workflow
2 parents 41523a2 + 6b5d4ae commit 4702eb4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install ffmpeg
17+
run: sudo apt-get update && sudo apt-get install -y ffmpeg
18+
19+
- name: Install Python
20+
uses: actions/setup-python@v5
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v5
24+
with:
25+
enable-cache: true
26+
27+
- name: Install Python dependencies
28+
run: uv sync --all-extras --dev
29+
30+
- name: Install pip
31+
run: uv run python -m ensurepip
32+
33+
- name: Install bun
34+
run: |
35+
curl -fsSL https://bun.sh/install | bash
36+
echo "$HOME/.bun/bin" >> $GITHUB_PATH
37+
38+
- name: Install Bun dependencies
39+
run: bun install
40+
41+
- name: Run tests
42+
run: uv run python -m unittest discover tests
43+
44+
- name: Python format
45+
run: uv run ruff format --diff .
46+
47+
- name: Python lint
48+
run: uv run ruff check .

0 commit comments

Comments
 (0)