Skip to content

Commit 811aa6c

Browse files
committed
ci: simplify CI matrix and add GitHub Pages deployment
- Reduce CI to single job (ubuntu-latest, Python 3.11) - Add CI badge with correct username (mariuspruvot) - Add GitHub Pages workflow for MkDocs deployment - Make codecov upload optional (fail_ci_if_error: false)
1 parent abd0ff8 commit 811aa6c

5 files changed

Lines changed: 971 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: ["3.11", "3.12", "3.13"]
11+
runs-on: ubuntu-latest
1612

1713
steps:
1814
- uses: actions/checkout@v4
@@ -22,10 +18,10 @@ jobs:
2218
with:
2319
version: "latest"
2420

25-
- name: Set up Python ${{ matrix.python-version }}
21+
- name: Set up Python
2622
uses: actions/setup-python@v5
2723
with:
28-
python-version: ${{ matrix.python-version }}
24+
python-version: "3.11"
2925

3026
- name: Install dependencies
3127
run: |
@@ -42,11 +38,9 @@ jobs:
4238
run: uv run poe test-cov
4339

4440
- name: Upload coverage to Codecov
45-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
41+
if: success()
4642
uses: codecov/codecov-action@v4
4743
with:
4844
token: ${{ secrets.CODECOV_TOKEN }}
4945
files: ./coverage.xml
50-
flags: unittests
51-
name: codecov-umbrella
52-
fail_ci_if_error: true
46+
fail_ci_if_error: false

.github/workflows/docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Install dependencies
25+
run: |
26+
uv venv
27+
uv pip install -e ".[dev]"
28+
29+
- name: Deploy MkDocs
30+
run: uv run mkdocs gh-deploy --force

0 commit comments

Comments
 (0)