build(deps): bump the github-actions group with 6 updates #240
Workflow file for this run
This file contains hidden or 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: 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] | |
| pyver: ["3.9", "3.14"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: free disk space | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: endersonmenezes/free-disk-space@v3 | |
| with: | |
| remove_android: true | |
| remove_dotnet: true | |
| remove_haskell: true | |
| rm_cmd: "rmz" | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '${{ matrix.pyver }}' | |
| - name: install pip, setuptools, & pytest | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade setuptools | |
| python -m pip install pytest pytest-run-parallel pytest-skip-slow | |
| - 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}" | |
| pip install -v -e . | |
| - name: test fitsio | |
| run: | | |
| pytest --slow -vv fitsio | |
| python -c "import fitsio; assert fitsio.cfitsio_has_bzip2_support()" | |
| python -c "import fitsio; assert fitsio.cfitsio_has_curl_support()" |