Skip to content

Commit f8cb7b9

Browse files
committed
updated workflows
1 parent 7d00e4d commit f8cb7b9

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
1517

1618
- name: Install uv
1719
uses: astral-sh/setup-uv@v5
@@ -26,4 +28,4 @@ jobs:
2628
run: uv run ruff check src/
2729

2830
- name: Run tests
29-
run: uv run pytest tests/
31+
run: uv run pytest tests/ --cov=src/copia --cov-report=term-missing
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,33 @@ on:
66

77
permissions:
88
contents: write
9+
pages: write
910

1011
jobs:
1112
deploy:
1213
runs-on: ubuntu-latest
1314

1415
steps:
1516
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1619

1720
- name: Install uv
1821
uses: astral-sh/setup-uv@v5
1922

2023
- name: Set up Python
2124
run: uv python install 3.13
2225

26+
- name: Cache MkDocs social plugin
27+
uses: actions/cache@v4
28+
with:
29+
key: mkdocs-material-${{ github.ref }}
30+
path: .cache
31+
restore-keys: |
32+
mkdocs-material-
33+
2334
- name: Install dependencies
2435
run: uv sync --all-groups
2536

2637
- name: Deploy docs
27-
run: uv run mkdocs gh-deploy --force
38+
run: uv run mkdocs gh-deploy --force

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1921

2022
- name: Install uv
2123
uses: astral-sh/setup-uv@v5
@@ -30,4 +32,4 @@ jobs:
3032
run: uv build
3133

3234
- name: Publish to PyPI
33-
uses: pypa/gh-action-pypi-publish@release/v1
35+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)