Skip to content

build(deps): bump the github-actions group with 3 updates #597

build(deps): bump the github-actions group with 3 updates

build(deps): bump the github-actions group with 3 updates #597

Workflow file for this run

name: tests-pypi
on:
push:
branches:
- master
pull_request: null
env:
PY_COLORS: "1"
# These compiler flags force the tests to fail if arrays are
# accessed at the C level from an unaligned location.
TEST_CFLAGS: "-fsanitize=alignment -fno-sanitize-recover=alignment"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests-pypi:
name: tests-pypi
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, ubuntu-26.04-arm, macos-26-intel]
pyver: ["3.10", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- name: free disk space
if: matrix.os == 'ubuntu-latest'
uses: endersonmenezes/free-disk-space@v4
with:
remove_android: true
remove_dotnet: true
remove_haskell: true
rm_cmd: "rmz"
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '${{ matrix.pyver }}'
- name: install bzip2 and other tools on linux
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install libbz2-dev wget make curl libcurl4-openssl-dev
- name: build fitsio
run: |
export CFLAGS="${CFLAGS} ${TEST_CFLAGS}"
python -m pip install --upgrade pip
pip install -v -e ".[dev]"
- name: test fitsio
run: |
pytest -vv --durations=20 --slow fitsio
python -c "import fitsio; assert fitsio.cfitsio_has_bzip2_support()"
python -c "import fitsio; assert fitsio.cfitsio_has_curl_support()"
python -c "import fitsio; assert fitsio.cfitsio_is_reentrant()"