Skip to content

Commit f5fe041

Browse files
committed
(Issue #164) Revert test and release action.
The macOS 14 build wheel action did indeed cause the action to fail as expected.
1 parent 695ef77 commit f5fe041

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -53,47 +53,47 @@ jobs:
5353
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
5454
path: ${{ env.WHEEL_PATH }}/*.whl
5555

56-
# make-sdist:
57-
# name: Build source distribution
58-
# strategy:
59-
# matrix:
60-
# os: [ubuntu-latest]
61-
# python-version: ["3.13"]
62-
# runs-on: ${{ matrix.os }}
63-
# steps:
64-
# - uses: actions/checkout@v4
65-
#
66-
# - name: Set up Python ${{ matrix.python-version }}
67-
# uses: actions/setup-python@v5
68-
# with:
69-
# python-version: ${{ matrix.python-version }}
70-
#
71-
# - name: Make & test sdist
72-
# run: |
73-
# # Setup Python
74-
# echo ""
75-
# python -m pip install --upgrade pip
76-
# python -m pip install --upgrade setuptools
77-
# python -m pip install build
78-
# # Build distribution & install
79-
# echo ""
80-
# pushd $PKG_ROOT
81-
# python -m build --sdist
82-
# popd
83-
# python -m pip install ${{ env.DIST_PATH }}/surmise-*.tar.gz
84-
# # Log info
85-
# echo ""
86-
# which python
87-
# python -m pip list
88-
# # Run tests through package
89-
# echo ""
90-
# python -c "import surmise ; exit(not surmise.test())"
91-
#
92-
# - name: Archive source distribution
93-
# uses: actions/upload-artifact@v4
94-
# with:
95-
# name: cibw-sdist
96-
# path: ${{ env.DIST_PATH }}/surmise-*.tar.gz
56+
make-sdist:
57+
name: Build source distribution
58+
strategy:
59+
matrix:
60+
os: [ubuntu-latest]
61+
python-version: ["3.13"]
62+
runs-on: ${{ matrix.os }}
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Set up Python ${{ matrix.python-version }}
67+
uses: actions/setup-python@v5
68+
with:
69+
python-version: ${{ matrix.python-version }}
70+
71+
- name: Make & test sdist
72+
run: |
73+
# Setup Python
74+
echo ""
75+
python -m pip install --upgrade pip
76+
python -m pip install --upgrade setuptools
77+
python -m pip install build
78+
# Build distribution & install
79+
echo ""
80+
pushd $PKG_ROOT
81+
python -m build --sdist
82+
popd
83+
python -m pip install ${{ env.DIST_PATH }}/surmise-*.tar.gz
84+
# Log info
85+
echo ""
86+
which python
87+
python -m pip list
88+
# Run tests through package
89+
echo ""
90+
python -c "import surmise ; exit(not surmise.test())"
91+
92+
- name: Archive source distribution
93+
uses: actions/upload-artifact@v4
94+
with:
95+
name: cibw-sdist
96+
path: ${{ env.DIST_PATH }}/surmise-*.tar.gz
9797

9898
# THE FOLLOWING SHOULD BE CAREFULLY REVIEWED BEFORE UNCOMMENTING. IT IS
9999
# EFFECTIVELY A PLACEHOLDER.

src/surmise/tests/test_new_emu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ def test_update(cmdopt1, expectation):
255255
fnew = balldropmodel_linear(xv, thetanew)
256256
with expectation:
257257
emu.update(x=None, theta=thetanew, f=fnew)
258-
assert len(emu._emulator__theta) == 50, 'Check emulator.update()'
258+
assert len(emu._emulator__theta) == 60, 'Check emulator.update()'

0 commit comments

Comments
 (0)