Skip to content

Commit

Permalink
test [pypi]
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Jun 7, 2024
1 parent c48544f commit 739df6e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse

- name: Build wheels
if: matrix.os == 'macos-14' && matrix.os == 'ubuntu-latest' && matrix.os == 'windows-latest'
if: matrix.os == 'macos-14' || matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest'
env:
MACOSX_DEPLOYMENT_TARGET: 14
CIBW_BUILD: cp311-*
Expand Down Expand Up @@ -135,3 +135,20 @@ jobs:
- name: Publish sdist to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: pypa/gh-action-pypi-publish@release/v1

test_wheels:
name: Test wheels on ${{ matrix.os }}
if: contains(github.event.head_commit.message, '[test_pypi]')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-11, macos-12, macos-13, macos-13-xlarge, macos-14, ubuntu-latest, windows-latest ]

steps:
- uses: actions/setup-python@v5

- name: install
run: pip python -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ camb

- name: test
run: python -m unittest camb.tests.camb_test
2 changes: 1 addition & 1 deletion camb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__author__ = "Antony Lewis"
__contact__ = "antony at cosmologist dot info"
__url__ = "https://camb.readthedocs.io"
__version__ = "1.5.4.2"
__version__ = "1.5.4.3"

from . import baseconfig

Expand Down
2 changes: 1 addition & 1 deletion fortran/config.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module config
use constants, only: const_twopi
implicit none

character(LEN=*), parameter :: version = '1.5.4.2'
character(LEN=*), parameter :: version = '1.5.4.3'

integer :: FeedbackLevel = 0 !if >0 print out useful information about the model

Expand Down

0 comments on commit 739df6e

Please sign in to comment.