Skip to content

Commit 192c1ab

Browse files
committed
Fix GitHub workflows
1 parent c608c17 commit 192c1ab

File tree

6 files changed

+128
-11
lines changed

6 files changed

+128
-11
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
os:
1515
- ubuntu-24.04
1616
- ubuntu-24.04-arm
17-
- macos-15
1817
- macos-15-intel
1918
python-version:
2019
- '3.11'
20+
- '3.12'
21+
- '3.13'
2122

2223
runs-on: ${{ matrix.os }}
2324

@@ -36,16 +37,18 @@ jobs:
3637
run: |
3738
python -m pip install --upgrade pip
3839
python -m pip install setuptools wheel build cython
40+
python -m pip install auditwheel
3941
4042
- name: Build wheel and source tarball
4143
run: |
4244
python -m build
45+
auditwheel repair dist/softfloatpy-*.whl
4346
4447
- name: Store distribution
4548
uses: actions/upload-artifact@v6
4649
with:
4750
name: python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
48-
path: dist/
51+
path: wheelhouse/
4952
retention-days: 1
5053

5154
pypi:
@@ -73,6 +76,8 @@ jobs:
7376

7477
- name: Publish distribution to PyPI
7578
uses: pypa/gh-action-pypi-publish@release/v1
79+
with:
80+
verbose: true
7681

7782
github-release:
7883
needs:

.github/workflows/test.yml

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,123 @@ on:
1111
- develop
1212

1313
jobs:
14-
test:
15-
name: Test
14+
test-on-linux:
15+
name: Test on Linux
1616

1717
strategy:
1818
matrix:
1919
os:
2020
- ubuntu-24.04
2121
- ubuntu-24.04-arm
22+
python-version:
23+
- '3.11'
24+
- '3.12'
25+
- '3.13'
26+
27+
runs-on: ${{ matrix.os }}
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v6
32+
with:
33+
submodules: recursive
34+
35+
- name: Set up Python
36+
uses: actions/setup-python@v6
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
python -m pip install setuptools wheel build cython
44+
python -m pip install auditwheel
45+
python -m pip install flake8 mypy pytest
46+
47+
- name: Build wheel and source tarball
48+
run: |
49+
python -m build
50+
auditwheel repair dist/softfloatpy-*.whl
51+
52+
- name: Install built wheel
53+
run: |
54+
python -m pip install wheelhouse/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-macos:
69+
name: Test on macOS
70+
71+
strategy:
72+
matrix:
73+
os:
2274
- macos-15
2375
- macos-15-intel
2476
python-version:
2577
- '3.11'
78+
- '3.12'
79+
- '3.13'
80+
81+
runs-on: ${{ matrix.os }}
82+
83+
steps:
84+
- name: Checkout code
85+
uses: actions/checkout@v6
86+
with:
87+
submodules: recursive
88+
89+
- name: Set up Python
90+
uses: actions/setup-python@v6
91+
with:
92+
python-version: ${{ matrix.python-version }}
93+
94+
- name: Install dependencies
95+
run: |
96+
python -m pip install --upgrade pip
97+
python -m pip install setuptools wheel build cython
98+
python -m pip install flake8 mypy pytest
99+
100+
- name: Build wheel and source tarball
101+
run: |
102+
python -m build
103+
104+
- name: Install built wheel
105+
run: |
106+
python -m pip install dist/softfloatpy-*.whl
107+
108+
- name: Check coding style with flake8
109+
run: |
110+
python -m flake8 --doctests ./python
111+
112+
- name: Check data types with mypy
113+
run: |
114+
python -m mypy --strict ./python
115+
116+
- name: Test code with pytest
117+
run: |
118+
python -m pytest ./python --doctest-modules
119+
120+
test-on-windows:
121+
name: Test on Windows
122+
123+
strategy:
124+
matrix:
125+
os:
126+
- windows-2025
127+
python-version:
128+
- '3.11'
129+
- '3.12'
130+
- '3.13'
26131

27132
runs-on: ${{ matrix.os }}
28133

.github/workflows/testpypi.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
os:
1515
- ubuntu-24.04
1616
- ubuntu-24.04-arm
17-
- macos-15
1817
- macos-15-intel
1918
python-version:
2019
- '3.11'
20+
- '3.12'
21+
- '3.13'
2122

2223
runs-on: ${{ matrix.os }}
2324

@@ -36,16 +37,18 @@ jobs:
3637
run: |
3738
python -m pip install --upgrade pip
3839
python -m pip install setuptools wheel build cython
40+
python -m pip install auditwheel
3941
4042
- name: Build wheel and source tarball
4143
run: |
4244
python -m build
45+
auditwheel repair dist/softfloatpy-*.whl
4346
4447
- name: Store distribution
4548
uses: actions/upload-artifact@v6
4649
with:
4750
name: python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
48-
path: dist/
51+
path: wheelhouse/
4952
retention-days: 1
5053

5154
testpypi:
@@ -75,3 +78,4 @@ jobs:
7578
uses: pypa/gh-action-pypi-publish@release/v1
7679
with:
7780
repository-url: https://test.pypi.org/legacy/
81+
verbose: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/dist/
2+
/wheelhouse/
23
__pycache__/
34
.pytest_cache/
45
.mypy_cache/

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,27 @@ all: lint type test dist doc
1111

1212
req:
1313
$(PYTHON) -m pip install --quiet --upgrade pip
14-
$(PYTHON) -m pip install --quiet setuptools wheel build cython pytest mypy flake8 sphinx sphinx-rtd-theme myst-parser
14+
$(PYTHON) -m pip install --quiet setuptools wheel build cython auditwheel pytest mypy flake8 sphinx sphinx-rtd-theme myst-parser
1515

1616
lint:
1717
$(PYTHON) -m flake8 --doctests $(PYROOTDIR)
1818

1919
type:
20-
$(PYTHON) -m pip install --quiet --force-reinstall ./dist/*.whl
20+
$(PYTHON) -m pip install --quiet --force-reinstall ./wheelhouse/softfloatpy-*.whl
2121
$(PYTHON) -m mypy --strict $(PYROOTDIR)
2222

2323
test:
24-
$(PYTHON) -m pip install --quiet --force-reinstall ./dist/*.whl
24+
$(PYTHON) -m pip install --quiet --force-reinstall ./wheelhouse/softfloatpy-*.whl
2525
$(PYTHON) -m pytest $(PYROOTDIR) -vv --doctest-modules
2626

2727
dist:
2828
$(PYTHON) -m build
29+
auditwheel repair dist/softfloatpy-*.whl
2930

3031
doc:
31-
$(PYTHON) -m pip install --quiet --force-reinstall ./dist/*.whl
32+
$(PYTHON) -m pip install --quiet --force-reinstall ./wheelhouse/softfloatpy-*.whl
3233
$(SPHINX_APIDOC) -T -f -o $(PYDOCSRCDIR)/apidoc $(PYROOTDIR)/src
3334
$(SPHINX_BUILD) -b html $(PYDOCSRCDIR) $(PYDOCOUTDIR)/html
3435

3536
clean:
36-
rm -rf $(PYDOCOUTDIR) $(PYROOTDIR)/src/softfloatpy.egg-info ./dist
37+
rm -rf $(PYDOCOUTDIR) $(PYROOTDIR)/src/softfloatpy.egg-info ./dist ./wheelhouse

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dictionaries: []
55
words:
66
- apidoc
77
- Arihiro
8+
- auditwheel
89
- bfloat
910
- bint
1011
- bysource

0 commit comments

Comments
 (0)