Skip to content

Commit 6020d2c

Browse files
committed
Fix CI
1 parent 402b007 commit 6020d2c

3 files changed

Lines changed: 11 additions & 28 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
2325
- name: Install dependencies
2426
run: |
25-
pip install '.[test]'
27+
uv pip install --system '.[dev]'
2628
- name: Run tests
2729
run: |
28-
python setup.py coverage -q
29-
coverage xml
30-
- name: Upload coverage
31-
uses: codecov/codecov-action@v3
32-
with:
33-
files: ./coverage.xml
30+
python -m unittest discover -v
3431
lint:
3532
runs-on: ubuntu-latest
3633

@@ -40,9 +37,11 @@ jobs:
4037
uses: actions/setup-python@v5
4138
with:
4239
python-version: '3.14'
40+
- name: Install uv
41+
uses: astral-sh/setup-uv@v5
4342
- name: Install dependencies
4443
run: |
45-
pip install '.[test]'
44+
uv pip install --system '.[dev]'
4645
- name: Run lint
4746
run: |
48-
flake8
47+
flake8

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# mike (for Zensical)
22

3+
[![Build Status](https://github.com/squidfunk/mike/actions/workflows/build.yml/badge.svg)](https://github.com/squidfunk/mike/actions/workflows/build.yml)
4+
35
> [!NOTE]
46
>
57
> Don't know what Zensical is? Read the [announcement blog post](https://squidfunk.github.io/mkdocs-material/blog/2025/11/05/zensical/).

pyproject.toml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies = [
2929
]
3030

3131
[project.optional-dependencies]
32-
dev = ["coverage", "flake8 >= 3.0", "flake8-quotes", "shtab"]
32+
dev = ["flake8 >= 3.0", "flake8-quotes", "shtab"]
3333

3434
[project.scripts]
3535
mike = "mike.driver:main"
@@ -45,21 +45,3 @@ expression = "version"
4545
[tool.hatch.build.targets.wheel]
4646
packages = ["mike"]
4747

48-
[tool.coverage.run]
49-
source = ["mike"]
50-
parallel = true
51-
branch = true
52-
53-
[tool.coverage.paths]
54-
source = [
55-
"mike/",
56-
"/usr/local/lib/*/site-packages/mike/",
57-
]
58-
59-
[tool.coverage.report]
60-
exclude_lines = [
61-
"pragma: no cover",
62-
"raise NotImplementedError",
63-
"return NotImplemented",
64-
"def __repr__",
65-
]

0 commit comments

Comments
 (0)