Skip to content

Commit f17c68b

Browse files
committed
finalize
1 parent 2e79e6e commit f17c68b

2 files changed

Lines changed: 124 additions & 124 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ jobs:
4545
- name: Install command runner
4646
run: uv tool install rust-just
4747

48-
# - name: Install static analysis dependencies
49-
# run: just env-sync hooks
48+
- name: Install static analysis dependencies
49+
run: just env-sync hooks
5050

51-
# - name: Run hooks
52-
# run: just hooks-check
51+
- name: Run hooks
52+
run: just hooks-check
5353

54-
# - name: Install testing dependencies
55-
# run: just env-sync test
54+
- name: Install testing dependencies
55+
run: just env-sync test
5656

57-
# - name: Run tests
58-
# run: just test-all
57+
- name: Run tests
58+
run: just test-all
5959

6060
- name: Build source distribution
6161
id: build-sdist
@@ -97,76 +97,76 @@ jobs:
9797
- name: Checkout code
9898
uses: actions/checkout@v5
9999

100-
# - name: Load environment file
101-
# uses: ./.github/actions/load-env
102-
103-
# - name: Install Python
104-
# uses: actions/setup-python@v6
105-
# with:
106-
# python-version: "${{ matrix.python-version }}"
107-
108-
# - name: Install uv
109-
# uses: astral-sh/setup-uv@v7
110-
111-
# - name: Install command runner
112-
# run: uv tool install rust-just
113-
114-
# - name: Install testing dependencies
115-
# env:
116-
# MSGSPEC_SANITIZE: "true"
117-
# MSGSPEC_COVERAGE: "true"
118-
# run: just env-sync test
119-
120-
# - name: Run tests with sanitizers
121-
# env:
122-
# PYTHONMALLOC: "malloc"
123-
# ASAN_OPTIONS: "detect_leaks=0"
124-
# run: >-
125-
# LD_PRELOAD=`gcc -print-file-name=libasan.so`
126-
# just env-run test coverage run -m pytest tests/unit -s
127-
128-
# - name: Generate coverage files
129-
# run: |-
130-
# just env-run test coverage xml
131-
# gcov -abcu `find build/temp*/ -name *.o`
132-
133-
# - name: Upload coverage artifacts
134-
# uses: actions/upload-artifact@v5
135-
# with:
136-
# name: coverage-${{ matrix.python-version }}-${{ matrix.os }}
137-
# path: |-
138-
# coverage.xml
139-
# _core.c.gcov
140-
# atof.h.gcov
141-
# ryu.h.gcov
142-
# if-no-files-found: error
143-
144-
# upload-coverage:
145-
# name: Upload coverage files to Codecov
146-
# needs:
147-
# - test
148-
# runs-on: ubuntu-latest
149-
# permissions:
150-
# id-token: write
151-
152-
# steps:
153-
# - name: Checkout code
154-
# uses: actions/checkout@v5
155-
156-
# - name: Download coverage artifacts
157-
# uses: actions/download-artifact@v5
158-
# with:
159-
# pattern: coverage-*
160-
# path: coverage-files
161-
162-
# - name: See the coverage files
163-
# run: tree -sh coverage-files
164-
165-
# - name: Upload Codecov
166-
# uses: codecov/codecov-action@v5
167-
# with:
168-
# use_oidc: true
169-
# directory: coverage-files
100+
- name: Load environment file
101+
uses: ./.github/actions/load-env
102+
103+
- name: Install Python
104+
uses: actions/setup-python@v6
105+
with:
106+
python-version: "${{ matrix.python-version }}"
107+
108+
- name: Install uv
109+
uses: astral-sh/setup-uv@v7
110+
111+
- name: Install command runner
112+
run: uv tool install rust-just
113+
114+
- name: Install testing dependencies
115+
env:
116+
MSGSPEC_SANITIZE: "true"
117+
MSGSPEC_COVERAGE: "true"
118+
run: just env-sync test
119+
120+
- name: Run tests with sanitizers
121+
env:
122+
PYTHONMALLOC: "malloc"
123+
ASAN_OPTIONS: "detect_leaks=0"
124+
run: >-
125+
LD_PRELOAD=`gcc -print-file-name=libasan.so`
126+
just env-run test coverage run -m pytest tests/unit -s
127+
128+
- name: Generate coverage files
129+
run: |-
130+
just env-run test coverage xml
131+
gcov -abcu `find build/temp*/ -name *.o`
132+
133+
- name: Upload coverage artifacts
134+
uses: actions/upload-artifact@v5
135+
with:
136+
name: coverage-${{ matrix.python-version }}-${{ matrix.os }}
137+
path: |-
138+
coverage.xml
139+
_core.c.gcov
140+
atof.h.gcov
141+
ryu.h.gcov
142+
if-no-files-found: error
143+
144+
upload-coverage:
145+
name: Upload coverage files to Codecov
146+
needs:
147+
- test
148+
runs-on: ubuntu-latest
149+
permissions:
150+
id-token: write
151+
152+
steps:
153+
- name: Checkout code
154+
uses: actions/checkout@v5
155+
156+
- name: Download coverage artifacts
157+
uses: actions/download-artifact@v5
158+
with:
159+
pattern: coverage-*
160+
path: coverage-files
161+
162+
- name: See the coverage files
163+
run: tree -sh coverage-files
164+
165+
- name: Upload Codecov
166+
uses: codecov/codecov-action@v5
167+
with:
168+
use_oidc: true
169+
directory: coverage-files
170170

171171
profile:
172172
name: Run profiling tests

‎.github/workflows/docs.yml‎

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,49 +13,49 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v5
1515

16-
# - name: Load environment file
17-
# uses: ./.github/actions/load-env
18-
19-
# - name: Install Python
20-
# uses: actions/setup-python@v6
21-
# with:
22-
# python-version-file: pyproject.toml
23-
24-
# - name: Install uv
25-
# uses: astral-sh/setup-uv@v7
26-
27-
# - name: Install command runner
28-
# run: uv tool install rust-just
29-
30-
# - name: Install dependencies
31-
# run: just env-sync doc
32-
33-
# - name: Build documentation
34-
# run: just doc-build
35-
36-
# - name: Restore link check cache
37-
# uses: actions/cache@v4
38-
# with:
39-
# path: .lycheecache
40-
# key: cache-lychee-${{ github.sha }}
41-
# restore-keys: cache-lychee-
42-
43-
# - name: Check links
44-
# uses: lycheeverse/lychee-action@v2
45-
# with:
46-
# lycheeVersion: v0.21.0
47-
# fail: true
48-
# failIfEmpty: true
49-
# token: "${{ github.token }}"
50-
# args: >-
51-
# --verbose
52-
# --no-progress
53-
# README.md
54-
# docs/build
55-
56-
# - name: Deploy
57-
# uses: peaceiris/actions-gh-pages@v4
58-
# if: github.ref == 'refs/heads/main'
59-
# with:
60-
# github_token: "${{ github.token }}"
61-
# publish_dir: docs/build/html
16+
- name: Load environment file
17+
uses: ./.github/actions/load-env
18+
19+
- name: Install Python
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version-file: pyproject.toml
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v7
26+
27+
- name: Install command runner
28+
run: uv tool install rust-just
29+
30+
- name: Install dependencies
31+
run: just env-sync doc
32+
33+
- name: Build documentation
34+
run: just doc-build
35+
36+
- name: Restore link check cache
37+
uses: actions/cache@v4
38+
with:
39+
path: .lycheecache
40+
key: cache-lychee-${{ github.sha }}
41+
restore-keys: cache-lychee-
42+
43+
- name: Check links
44+
uses: lycheeverse/lychee-action@v2
45+
with:
46+
lycheeVersion: v0.21.0
47+
fail: true
48+
failIfEmpty: true
49+
token: "${{ github.token }}"
50+
args: >-
51+
--verbose
52+
--no-progress
53+
README.md
54+
docs/build
55+
56+
- name: Deploy
57+
uses: peaceiris/actions-gh-pages@v4
58+
if: github.ref == 'refs/heads/main'
59+
with:
60+
github_token: "${{ github.token }}"
61+
publish_dir: docs/build/html

0 commit comments

Comments
 (0)