-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci.bash
executable file
·37 lines (28 loc) · 1.13 KB
/
ci.bash
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
35
36
37
#!/usr/bin/env bash
set -euo pipefail
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null
# Lint
uv run -- ruff format
uv run -- ruff check --fix
# Type check
uv run -- pyright
# Test
uv sync
uv run -- pytest --capture=no --verbose --cov --cov-report=xml \
--ignore=src/jax_loop_utils/metric_writers/tf/ \
--ignore=src/jax_loop_utils/metric_writers/torch/ \
--ignore=src/jax_loop_utils/metric_writers/mlflow/ \
--ignore=src/jax_loop_utils/metric_writers/_audio_video/ \
src/jax_loop_utils/
uv sync --extra tensorflow
uv run -- pytest --capture=no --verbose --cov --cov-report=xml --cov-append \
src/jax_loop_utils/metric_writers/tf
uv sync --group dev-torch --extra torch
uv run -- pytest --capture=no --verbose --cov --cov-report=xml --cov-append \
src/jax_loop_utils/metric_writers/torch
uv sync --extra mlflow --extra audio-video
uv run -- pytest --capture=no --verbose --cov --cov-report=xml --cov-append \
src/jax_loop_utils/metric_writers/mlflow
uv sync --extra audio-video
uv run -- pytest --capture=no --verbose --cov --cov-report=xml --cov-append \
src/jax_loop_utils/metric_writers/_audio_video