Skip to content

Commit 4551df8

Browse files
committed
Fix GitHub workflows
1 parent fe9d66e commit 4551df8

File tree

5 files changed

+177
-6
lines changed

5 files changed

+177
-6
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: 54 additions & 2 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,18 +16,69 @@ jobs:
1616
- ubuntu-24.04-arm
1717
- macos-15
1818
- macos-15-intel
19+
python-version:
20+
- '3.11'
21+
- '3.12'
22+
- '3.13'
23+
24+
runs-on: ${{ matrix.os }}
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v6
29+
with:
30+
submodules: recursive
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v6
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
python -m pip install setuptools wheel build cython
41+
42+
- name: Build wheel and source tarball
43+
run: |
44+
python -m build
45+
46+
- name: Store distribution
47+
uses: actions/upload-artifact@v6
48+
with:
49+
name: python-package-distributions
50+
path: dist/
51+
52+
dist-on-windows:
53+
name: Build distribution packages on Windows
54+
55+
strategy:
56+
matrix:
57+
os:
1958
- windows-2025
20-
- windows-11-arm
2159
python-version:
2260
- '3.11'
2361
- '3.12'
2462
- '3.13'
2563

2664
runs-on: ${{ matrix.os }}
2765

66+
defaults:
67+
run:
68+
shell: msys2 {0}
69+
2870
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+
2978
- name: Checkout code
3079
uses: actions/checkout@v6
80+
with:
81+
submodules: recursive
3182

3283
- name: Set up Python
3384
uses: actions/setup-python@v6
@@ -54,6 +105,7 @@ jobs:
54105

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

58110
runs-on: ubuntu-latest
59111

.github/workflows/test.yml

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,80 @@ jobs:
2121
- ubuntu-24.04-arm
2222
- macos-15
2323
- macos-15-intel
24+
python-version:
25+
- '3.11'
26+
- '3.12'
27+
- '3.13'
28+
29+
runs-on: ${{ matrix.os }}
30+
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v6
34+
with:
35+
submodules: recursive
36+
37+
- name: Set up Python
38+
uses: actions/setup-python@v6
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
42+
- name: Install dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
python -m pip install setuptools wheel build cython
46+
python -m pip install flake8 mypy pytest
47+
48+
- name: Build wheel and source tarball
49+
run: |
50+
python -m build
51+
52+
- name: Install built wheel
53+
run: |
54+
python -m pip install dist/softfloatpy-*.whl
55+
56+
- name: Check coding style with flake8
57+
run: |
58+
python -m flake8 --doctests ./python
59+
60+
- name: Check data types with mypy
61+
run: |
62+
python -m mypy --strict ./python
63+
64+
- name: Test code with pytest
65+
run: |
66+
python -m pytest ./python --doctest-modules
67+
68+
test-on-windows:
69+
name: Test on Windows
70+
71+
strategy:
72+
matrix:
73+
os:
2474
- windows-2025
25-
- windows-11-arm
2675
python-version:
2776
- '3.11'
2877
- '3.12'
2978
- '3.13'
3079

3180
runs-on: ${{ matrix.os }}
3281

82+
defaults:
83+
run:
84+
shell: msys2 {0}
85+
3386
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+
3494
- name: Checkout code
3595
uses: actions/checkout@v6
96+
with:
97+
submodules: recursive
3698

3799
- name: Set up Python
38100
uses: actions/setup-python@v6
@@ -43,7 +105,7 @@ jobs:
43105
run: |
44106
python -m pip install --upgrade pip
45107
python -m pip install setuptools wheel build cython
46-
python -m pip install flake8, mypy, pytest
108+
python -m pip install flake8 mypy pytest
47109
48110
- name: Build wheel and source tarball
49111
run: |

.github/workflows/testpypi.yml

Lines changed: 54 additions & 2 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,18 +16,69 @@ jobs:
1616
- ubuntu-24.04-arm
1717
- macos-15
1818
- macos-15-intel
19+
python-version:
20+
- '3.11'
21+
- '3.12'
22+
- '3.13'
23+
24+
runs-on: ${{ matrix.os }}
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v6
29+
with:
30+
submodules: recursive
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v6
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
python -m pip install setuptools wheel build cython
41+
42+
- name: Build wheel and source tarball
43+
run: |
44+
python -m build
45+
46+
- name: Store distribution
47+
uses: actions/upload-artifact@v6
48+
with:
49+
name: python-package-distributions
50+
path: dist/
51+
52+
dist-on-windows:
53+
name: Build distribution packages on Windows
54+
55+
strategy:
56+
matrix:
57+
os:
1958
- windows-2025
20-
- windows-11-arm
2159
python-version:
2260
- '3.11'
2361
- '3.12'
2462
- '3.13'
2563

2664
runs-on: ${{ matrix.os }}
2765

66+
defaults:
67+
run:
68+
shell: msys2 {0}
69+
2870
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+
2978
- name: Checkout code
3079
uses: actions/checkout@v6
80+
with:
81+
submodules: recursive
3182

3283
- name: Set up Python
3384
uses: actions/setup-python@v6
@@ -54,6 +105,7 @@ jobs:
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)