Skip to content

Commit ce68e79

Browse files
committed
Fix GitHub workflows
1 parent fe9d66e commit ce68e79

File tree

5 files changed

+180
-9
lines changed

5 files changed

+180
-9
lines changed

.github/workflows/document.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v6
20+
with:
21+
submodules: recursive
2022

2123
- name: Set up Python
2224
uses: actions/setup-python@v6

.github/workflows/release.yml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
dist:
10-
name: Release distribution packages
10+
name: Build distribution packages
1111

1212
strategy:
1313
matrix:
@@ -16,8 +16,6 @@ jobs:
1616
- ubuntu-24.04-arm
1717
- macos-15
1818
- macos-15-intel
19-
- windows-2025
20-
- windows-11-arm
2119
python-version:
2220
- '3.11'
2321
- '3.12'
@@ -28,6 +26,8 @@ jobs:
2826
steps:
2927
- name: Checkout code
3028
uses: actions/checkout@v6
29+
with:
30+
submodules: recursive
3131

3232
- name: Set up Python
3333
uses: actions/setup-python@v6
@@ -49,11 +49,63 @@ jobs:
4949
name: python-package-distributions
5050
path: dist/
5151

52+
dist-on-windows:
53+
name: Build distribution packages on Windows
54+
55+
strategy:
56+
matrix:
57+
os:
58+
- windows-2025
59+
python-version:
60+
- '3.11'
61+
- '3.12'
62+
- '3.13'
63+
64+
runs-on: ${{ matrix.os }}
65+
66+
defaults:
67+
run:
68+
shell: msys2 {0}
69+
70+
steps:
71+
- name: Setup MSYS2 environment
72+
uses: msys2/setup-msys2@v2
73+
with:
74+
msystem: UCRT64
75+
update: true
76+
install: git mingw-w64-ucrt-x86_64-gcc
77+
78+
- name: Checkout code
79+
uses: actions/checkout@v6
80+
with:
81+
submodules: recursive
82+
83+
- name: Set up Python
84+
uses: actions/setup-python@v6
85+
with:
86+
python-version: ${{ matrix.python-version }}
87+
88+
- name: Install dependencies
89+
run: |
90+
python3 -m pip install --upgrade pip
91+
python3 -m pip install setuptools wheel build cython
92+
93+
- name: Build wheel and source tarball
94+
run: |
95+
python3 -m build
96+
97+
- name: Store distribution
98+
uses: actions/upload-artifact@v6
99+
with:
100+
name: python-package-distributions
101+
path: dist/
102+
52103
pypi:
53104
name: Publish distribution
54105

55106
needs:
56107
- dist
108+
- dist-on-windows
57109

58110
runs-on: ubuntu-latest
59111

.github/workflows/test.yml

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
- ubuntu-24.04-arm
2222
- macos-15
2323
- macos-15-intel
24-
- windows-2025
25-
- windows-11-arm
2624
python-version:
2725
- '3.11'
2826
- '3.12'
@@ -33,6 +31,8 @@ jobs:
3331
steps:
3432
- name: Checkout code
3533
uses: actions/checkout@v6
34+
with:
35+
submodules: recursive
3636

3737
- name: Set up Python
3838
uses: actions/setup-python@v6
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
python -m pip install --upgrade pip
4545
python -m pip install setuptools wheel build cython
46-
python -m pip install flake8, mypy, pytest
46+
python -m pip install flake8 mypy pytest
4747
4848
- name: Build wheel and source tarball
4949
run: |
@@ -64,3 +64,65 @@ jobs:
6464
- name: Test code with pytest
6565
run: |
6666
python -m pytest ./python --doctest-modules
67+
68+
test-on-windows:
69+
name: Test on Windows
70+
71+
strategy:
72+
matrix:
73+
os:
74+
- windows-2025
75+
python-version:
76+
- '3.11'
77+
- '3.12'
78+
- '3.13'
79+
80+
runs-on: ${{ matrix.os }}
81+
82+
defaults:
83+
run:
84+
shell: msys2 {0}
85+
86+
steps:
87+
- name: Setup MSYS2 environment
88+
uses: msys2/setup-msys2@v2
89+
with:
90+
msystem: UCRT64
91+
update: true
92+
install: git mingw-w64-ucrt-x86_64-gcc
93+
94+
- name: Checkout code
95+
uses: actions/checkout@v6
96+
with:
97+
submodules: recursive
98+
99+
- name: Set up Python
100+
uses: actions/setup-python@v6
101+
with:
102+
python-version: ${{ matrix.python-version }}
103+
104+
- name: Install dependencies
105+
run: |
106+
python3 -m pip install --upgrade pip
107+
python3 -m pip install setuptools wheel build cython
108+
python3 -m pip install flake8 mypy pytest
109+
110+
- name: Build wheel and source tarball
111+
run: |
112+
python3 -m build
113+
114+
- name: Install built wheel
115+
run: |
116+
python3 -m pip install dist/softfloatpy-*.whl
117+
118+
- name: Check coding style with flake8
119+
run: |
120+
python3 -m flake8 --doctests ./python
121+
122+
- name: Check data types with mypy
123+
run: |
124+
python3 -m mypy --strict ./python
125+
126+
- name: Test code with pytest
127+
run: |
128+
python3 -m pytest ./python --doctest-modules

.github/workflows/testpypi.yml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
dist:
10-
name: Release distribution packages
10+
name: Build distribution packages
1111

1212
strategy:
1313
matrix:
@@ -16,8 +16,6 @@ jobs:
1616
- ubuntu-24.04-arm
1717
- macos-15
1818
- macos-15-intel
19-
- windows-2025
20-
- windows-11-arm
2119
python-version:
2220
- '3.11'
2321
- '3.12'
@@ -28,6 +26,8 @@ jobs:
2826
steps:
2927
- name: Checkout code
3028
uses: actions/checkout@v6
29+
with:
30+
submodules: recursive
3131

3232
- name: Set up Python
3333
uses: actions/setup-python@v6
@@ -49,11 +49,63 @@ jobs:
4949
name: python-package-distributions
5050
path: dist/
5151

52+
dist-on-windows:
53+
name: Build distribution packages on Windows
54+
55+
strategy:
56+
matrix:
57+
os:
58+
- windows-2025
59+
python-version:
60+
- '3.11'
61+
- '3.12'
62+
- '3.13'
63+
64+
runs-on: ${{ matrix.os }}
65+
66+
defaults:
67+
run:
68+
shell: msys2 {0}
69+
70+
steps:
71+
- name: Setup MSYS2 environment
72+
uses: msys2/setup-msys2@v2
73+
with:
74+
msystem: UCRT64
75+
update: true
76+
install: git mingw-w64-ucrt-x86_64-gcc
77+
78+
- name: Checkout code
79+
uses: actions/checkout@v6
80+
with:
81+
submodules: recursive
82+
83+
- name: Set up Python
84+
uses: actions/setup-python@v6
85+
with:
86+
python-version: ${{ matrix.python-version }}
87+
88+
- name: Install dependencies
89+
run: |
90+
python3 -m pip install --upgrade pip
91+
python3 -m pip install setuptools wheel build cython
92+
93+
- name: Build wheel and source tarball
94+
run: |
95+
python3 -m build
96+
97+
- name: Store distribution
98+
uses: actions/upload-artifact@v6
99+
with:
100+
name: python-package-distributions
101+
path: dist/
102+
52103
testpypi:
53104
name: Publish test distribution
54105

55106
needs:
56107
- dist
108+
- dist-on-windows
57109

58110
runs-on: ubuntu-latest
59111

cspell.config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ words:
3737
- ixor
3838
- libc
3939
- lshift
40+
- msys
41+
- msystem
4042
- mypy
4143
- ndim
4244
- popd
@@ -62,6 +64,7 @@ words:
6264
- testpypi
6365
- toctree
6466
- truediv
67+
- ucrt
6568
- undoc
6669
- warningiserror
6770
- Yoshida

0 commit comments

Comments
 (0)