@@ -35,96 +35,104 @@ jobs:
3535 node-version : [22.x]
3636
3737 steps :
38- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39- with :
40- persist-credentials : false
41-
42- - uses : actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
43- with :
44- version : ${{ matrix.python-version }}
45-
46- - uses : actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f
47- with :
48- version : ${{ matrix.node-version }}
49-
50- - uses : actions-ext/cpp/setup@51c484ef64088c62434226039d0e3359f5fc8df6
51-
52- - uses : mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
53-
54- - name : Install dependencies
55- run : make develop
56-
57- - name : Lint
58- run : make lint
59- if : matrix.os == 'ubuntu-latest'
60-
61- - name : Checks
62- run : make checks
63- if : matrix.os == 'ubuntu-latest'
64-
65- - name : Test
66- run : make coverage
67-
68- - name : Upload test results (Python)
69- uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
70- with :
71- name : test-results-${{ matrix.os }}-${{ matrix.python-version }}
72- path : junit.xml
73- if : matrix.os == 'ubuntu-latest'
74-
75- - name : Publish Unit Test Results
76- uses : EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
77- with :
78- files : ' **/junit.xml'
79- if : matrix.os == 'ubuntu-latest'
80-
81- - name : Upload coverage
82- uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
83- with :
84- token : ${{ secrets.CODECOV_TOKEN }}
85-
86- - name : Install build dependencies
87- run : pip install cibuildwheel
88-
89- - name : Make dist (Linux)
90- run : |
91- rm -rf dist
92- make dist-py-sdist
93- make dist-py-wheel
94- make dist-check
95- env :
96- CIBW_BUILD : " ${{ matrix.cibuildwheel }}-manylinux*"
97- CIBW_BUILD_VERBOSITY : 3
98- if : matrix.os == 'ubuntu-latest'
99-
100- - name : Make dist (Macos)
101- run : |
102- rm -rf dist
103- make dist-py-wheel
104- env :
105- CIBW_BUILD : " ${{ matrix.cibuildwheel }}-macos*"
106- CIBW_BUILD_VERBOSITY : 3
107- if : matrix.os == 'macos-latest'
108-
109- - name : Make dist (Windows)
110- run : |
111- if (Test-Path dist) { Remove-Item dist -Recurse -Force }
112- make dist-py-wheel
113- env :
114- CIBW_BUILD : " ${{ matrix.cibuildwheel }}-win_amd64"
115- if : matrix.os == 'windows-latest'
116-
117- - uses : actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
118- with :
119- module : python_template_cppjswasm
120- if : matrix.os == 'ubuntu-latest'
121-
122- - uses : actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
123- with :
124- module : python_template_cppjswasm
125- if : matrix.os == 'ubuntu-latest'
126-
127- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
128- with :
129- name : dist-${{matrix.os}}-${{matrix.python-version}}
130- path : dist
38+ - name : Checkout
39+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40+ with :
41+ persist-credentials : false
42+
43+ - name : Setup Python
44+ uses : actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
45+ with :
46+ version : ${{ matrix.python-version }}
47+
48+ - name : Setup Node.js
49+ uses : actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f
50+ with :
51+ version : ${{ matrix.node-version }}
52+
53+ - name : Setup C++
54+ uses : actions-ext/cpp/setup@c2b1e90366b3a1c628a1df0748135f5e345ab26f
55+
56+ - name : Setup Emscripten
57+ uses : mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
58+
59+ - name : Install dependencies
60+ run : make develop
61+
62+ - name : Lint
63+ run : make lint
64+ if : matrix.os == 'ubuntu-latest'
65+
66+ - name : Checks
67+ run : make checks
68+ if : matrix.os == 'ubuntu-latest'
69+
70+ - name : Test
71+ run : make coverage
72+
73+ - name : Upload test results (Python)
74+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
75+ with :
76+ name : test-results-${{ matrix.os }}-${{ matrix.python-version }}
77+ path : junit.xml
78+ if : matrix.os == 'ubuntu-latest'
79+
80+ - name : Publish test results
81+ uses : EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
82+ with :
83+ files : ' **/junit.xml'
84+ if : matrix.os == 'ubuntu-latest'
85+
86+ - name : Upload coverage
87+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
88+ with :
89+ token : ${{ secrets.CODECOV_TOKEN }}
90+
91+ - name : Install build dependencies
92+ run : pip install cibuildwheel
93+
94+ - name : Build distributions (Linux)
95+ run : |
96+ rm -rf dist
97+ make dist-py-sdist
98+ make dist-py-wheel
99+ make dist-check
100+ env :
101+ CIBW_BUILD : " ${{ matrix.cibuildwheel }}-manylinux*"
102+ CIBW_BUILD_VERBOSITY : 3
103+ if : matrix.os == 'ubuntu-latest'
104+
105+ - name : Build distributions (macOS)
106+ run : |
107+ rm -rf dist
108+ make dist-py-wheel
109+ env :
110+ CIBW_BUILD : " ${{ matrix.cibuildwheel }}-macos*"
111+ CIBW_BUILD_VERBOSITY : 3
112+ if : matrix.os == 'macos-latest'
113+
114+ - name : Build distributions (Windows)
115+ run : |
116+ if (Test-Path dist) { Remove-Item dist -Recurse -Force }
117+ make dist-py-wheel
118+ env :
119+ CIBW_BUILD : " ${{ matrix.cibuildwheel }}-win_amd64"
120+ if : matrix.os == 'windows-latest'
121+
122+ - name : Test wheel
123+ uses : actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
124+ with :
125+ module : python_template_cppjswasm
126+ if : matrix.os == 'ubuntu-latest'
127+
128+ - name : Test source distribution
129+ uses : actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
130+ with :
131+ module : python_template_cppjswasm
132+ if : matrix.os == 'ubuntu-latest'
133+
134+ - name : Upload distributions
135+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
136+ with :
137+ name : dist-${{matrix.os}}-${{matrix.python-version}}
138+ path : dist
0 commit comments