Bump pypa/cibuildwheel from 2.21.1 to 2.21.2 #478
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
FC: gfortran-12 | |
CC: gcc-12 | |
CXX: gcc-12 | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set gfortran link on macos-latest | |
if: matrix.os == 'macos-latest' | |
run: | | |
ln -s $FC $(dirname $(which $FC))/gfortran | |
gfortran --version | |
- name: Install via pip | |
run: | | |
python -m pip install --upgrade pip setuptools wheel meson ninja meson-python numpy | |
python -m pip install --no-build-isolation --editable '.[test]' | |
- name: Download test data | |
run: | | |
wget https://github.com/xzackli/pspy/releases/download/v.test/example_newcov.zip | |
unzip example_newcov.zip | |
mv example_newcov pspy/tests/data/ | |
- name: Unit tests | |
run: | | |
pytest -vv pspy --cov=pspy --cov-report=xml --cov-report annotate --ignore=pspy/tests/test_pspy_namaster.py | |
- name: Report Coverage (codecov) | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# - name: Test notebooks (Only on Linux for saving time) | |
# if: matrix.os == 'ubuntu-latest' | |
# run: | | |
# python -m pip install '.[notebook]' | |
# python -m ipykernel install --user --name=pspy | |
# jupyter nbconvert --to notebook --execute docs/source/notebooks/tutorial_io.ipynb | |
- name: Comparing pspy to NaMaster | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get install -y libcfitsio-dev libfftw3-dev | |
python -m pip install pymaster | |
python -m unittest pspy/tests/test_pspy_namaster.py |