Skip to content

Commit

Permalink
test wheel [pypi][testpypi]
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 18, 2024
1 parent 461abdc commit 7584f52
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,33 @@ jobs:
CIBW_BUILD_VERBOSITY: 1
run: python -m cibuildwheel --output-dir wheelhouse

- name: Download and install gfortran-10.2
if: matrix.os == 'macos-12'
run: |
set -e # Exit immediately if a command exits with a non-zero status
echo "Downloading gfortran-10.2-Catalina.dmg..."
curl -L -o gfortran-10.2-Catalina.dmg https://github.com/fxcoudert/gfortran-for-macOS/releases/download/10.2/gfortran-10.2-Catalina.dmg
echo "Mounting gfortran-10.2-Catalina.dmg..."
hdiutil attach gfortran-10.2-Catalina.dmg
echo "Installing gfortran..."
sudo installer -pkg /Volumes/gfortran-10.2-Catalina/gfortran.pkg -target /
echo "Unmounting gfortran-10.2-Catalina.dmg..."
hdiutil detach /Volumes/gfortran-10.2-Catalina
echo "Verifying gfortran installation..."
gfortran --version
- name: Build macos-12 wheels
if: matrix.os == 'macos-12'
env:
# all cp3xx, since old macs seem to only use osx 12+ builds if this is set not "none"
# see consistency with get_tag() in setup.py
CIBW_BUILD: cp311-*
MACOSX_DEPLOYMENT_TARGET: 10.15
MACOSX_DEPLOYMENT_TARGET: 12
CIBW_SKIP: pp*
CIBW_BUILD_VERBOSITY: 1
run: python -m cibuildwheel --output-dir wheelhouse
Expand Down Expand Up @@ -135,7 +155,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-12, macos-13, macos-13-xlarge, macos-14, ubuntu-latest, windows-latest ]
os: [ macos-12, macos-13 ]

steps:
- uses: actions/setup-python@v5
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,5 @@ def run(self):
platforms="any",
package_data={'camb': [DLLNAME, 'HighLExtrapTemplate_lenspotentialCls.dat',
'PArthENoPE_880.2_marcucci.dat', 'PArthENoPE_880.2_standard.dat',
'PRIMAT_Yp_DH_Error.dat', 'PRIMAT_Yp_DH_ErrorMC_2021.dat']},
test_suite='camb.tests'
'PRIMAT_Yp_DH_Error.dat', 'PRIMAT_Yp_DH_ErrorMC_2021.dat']}
)

0 comments on commit 7584f52

Please sign in to comment.