File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Tests
33on :
44 push :
55 pull_request :
6- branches : [ "main" ]
6+ branches : ["main"]
77
88jobs :
99 test :
@@ -14,18 +14,18 @@ jobs:
1414 python-version : ["3.10", "3.11", "3.12"]
1515 runs-on : ${{matrix.runs-on}}
1616 steps :
17- - uses : actions/checkout@v4
18- - name : Set up Python ${{ matrix.python-version }}
19- uses : actions/setup-python@v5
20- with :
21- python-version : ${{ matrix.python-version }}
22- - name : Install dependencies
23- run : |
24- python -m pip install --upgrade pip
25- python -m pip install ruff pytest
26- - name : Install package
27- run : python -m pip install .
28- - name : Lint with ruff
29- run : ruff check --output-format=github .
30- - name : Run tests
31- run : python -m pytest tests/
17+ - uses : actions/checkout@v5
18+
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v6
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Install the project
25+ run : uv sync --all-extras --dev
26+
27+ - name : Lint with ruff
28+ run : uv run ruff check --output-format=github .
29+
30+ - name : Run tests
31+ run : uv run pytest --cov=cocoviz --cov-report=term-missing
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ ignore = ["F821"]
5454
5555[tool .pytest ]
5656log_cli = true
57- addopts = " --doctest-modules"
57+ addopts = [ " --doctest-modules" ]
5858
5959[tool .pyright ]
6060reportAny = false
You can’t perform that action at this time.
0 commit comments