File tree Expand file tree Collapse file tree 14 files changed +943
-0
lines changed
Expand file tree Collapse file tree 14 files changed +943
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - ' *'
10+
11+ jobs :
12+ check :
13+ name : Check
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout the Repository
17+ uses : actions/checkout@v4
18+
19+ - name : Check with ruff
20+ uses : astral-sh/ruff-action@v3
21+ with :
22+ args : check
23+
24+ fmt :
25+ name : Formatting
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout the Repository
29+ uses : actions/checkout@v4
30+
31+ - name : Check with ruff
32+ uses : astral-sh/ruff-action@v3
33+ with :
34+ args : " format --diff --check"
35+
36+ test :
37+ name : Test
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : Checkout the Repository
41+ uses : actions/checkout@v4
42+
43+ - name : Install uv
44+ uses : astral-sh/setup-uv@v5
45+
46+ - name : Setup the Python venv
47+ run : uv sync --all-extras --dev
48+
49+ - name : Run tests
50+ run : uv run pytest -v
51+
52+ mypy :
53+ name : Typecheck
54+ runs-on : ubuntu-latest
55+ steps :
56+ - name : Checkout the Repository
57+ uses : actions/checkout@v4
58+
59+ - name : Install uv
60+ uses : astral-sh/setup-uv@v5
61+
62+ - name : Setup the Python venv
63+ run : uv sync --all-extras --dev
64+
65+ - name : Typecheck numcodecs-replace
66+ run : uv run mypy -p numcodecs_replace
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ branch : main
6+ types : [released]
7+
8+ jobs :
9+ publish :
10+ name : Publish to PyPi
11+ runs-on : ubuntu-latest
12+ environment : publish
13+ permissions :
14+ contents : read
15+ id-token : write
16+ steps :
17+ - name : Checkout the Repository
18+ uses : actions/checkout@v4
19+
20+ - name : Install uv
21+ uses : astral-sh/setup-uv@v5
22+
23+ - name : Build the package
24+ run : uv build
25+
26+ - name : Publish the package to PyPi
27+ run : uv publish
Original file line number Diff line number Diff line change 1+ /.venv
2+ /.mypy_cache
3+ /.pytest_cache
4+ /.ruff_cache
5+ /uv.lock
6+
7+ /build
8+ /site
9+
10+ ** /__pycache__
11+ ** /* .egg-info
Original file line number Diff line number Diff line change 1+ 3.10
Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ build :
4+ os : ubuntu-24.04
5+ tools :
6+ python : " 3.12"
7+
8+ mkdocs :
9+ configuration : mkdocs.yml
10+
11+ python :
12+ install :
13+ - method : pip
14+ path : .
15+ - requirements : docs/requirements.txt
You can’t perform that action at this time.
0 commit comments