@@ -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
0 commit comments