-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 920 Bytes
/
test.yml
File metadata and controls
43 lines (34 loc) · 920 Bytes
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
38
39
40
41
42
43
name: Test
on:
pull_request:
branches:
- '**'
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
env:
UV_NO_SOURCES: "1"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Run ruff linter (check)
run: uv run ruff check openadapt_ml/
- name: Run ruff formatter (check)
run: uv run ruff format --check openadapt_ml/
- name: Run pytest
run: uv run pytest tests/ -v --ignore=tests/integration