Skip to content

Commit 4a648bd

Browse files
committed
split up ci
1 parent 8425844 commit 4a648bd

2 files changed

Lines changed: 56 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,37 @@ on:
1313
workflow_dispatch:
1414

1515
jobs:
16-
ci:
16+
lint:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
2120
- uses: astral-sh/setup-uv@v4
22-
with:
23-
python-version: "3.12"
24-
25-
- name: Install dependencies
26-
run: uv sync --dev
27-
working-directory: python
28-
2921
- name: Lint
30-
run: uv run ruff check src tests
22+
run: uvx ruff check src tests
3123
working-directory: python
32-
3324
- name: Format check
34-
run: uv run ruff format src tests --check
25+
run: uvx ruff format src tests --check
3526
working-directory: python
3627

28+
typecheck:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: astral-sh/setup-uv@v4
3733
- name: Type check
38-
run: uv run ty check src
34+
run: uvx ty check src
3935
working-directory: python
4036

37+
test:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: astral-sh/setup-uv@v4
42+
with:
43+
python-version: "3.12"
44+
- name: Install dependencies
45+
run: uv sync --dev
46+
working-directory: python
4147
- name: Run tests
4248
run: uv run pytest --cov=piezod --cov-report=term-missing
4349
working-directory: python

python/src/piezod/piezod.mplstyle

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# PiezoD matplotlib style sheet
2+
# Usage: plt.style.use("piezod")
3+
4+
# Figure
5+
figure.figsize: 8, 5
6+
figure.facecolor: white
7+
figure.dpi: 100
8+
9+
# Saving
10+
savefig.dpi: 150
11+
savefig.bbox: tight
12+
savefig.pad_inches: 0.1
13+
14+
# Font sizes
15+
font.size: 11
16+
axes.titlesize: 14
17+
axes.labelsize: 12
18+
legend.fontsize: 10
19+
xtick.labelsize: 10
20+
ytick.labelsize: 10
21+
22+
# Lines
23+
lines.linewidth: 2
24+
axes.linewidth: 1.5
25+
26+
# Grid
27+
axes.grid: True
28+
grid.alpha: 0.3
29+
grid.linewidth: 0.8
30+
31+
# Legend
32+
legend.framealpha: 0.9
33+
legend.edgecolor: lightgray
34+
35+
# Axes
36+
axes.spines.top: True
37+
axes.spines.right: True

0 commit comments

Comments
 (0)