Bump codecov/codecov-action from 5 to 6 in /.github/workflows #780
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: PyRAF CI test | |
| on: [push] | |
| jobs: | |
| tests: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| tmp: /tmp/ | |
| TERM: dumb | |
| PYRAF_NO_DISPLAY: no | |
| strategy: | |
| matrix: | |
| include: | |
| - name: Ubuntu 24.04 (Python-3.12.3), native | |
| os: ubuntu-24.04 | |
| method: native | |
| iraf: /usr/lib/iraf/ | |
| upload_coverage: yes | |
| - name: Ubuntu 24.04 (Python-3.12.3), native, without IRAF | |
| os: ubuntu-24.04 | |
| method: native | |
| - name: Ubuntu 22.04 (Python-3.10), pip | |
| os: ubuntu-22.04 | |
| iraf: /usr/lib/iraf/ | |
| method: pip | |
| - name: macOS 26, pip | |
| os: macos-26 | |
| method: pip | |
| steps: | |
| - name: Checkout repository | |
| if: matrix.method == 'native' | |
| uses: actions/checkout@v6 | |
| - name: Setup dependencies, Ubuntu/native | |
| if: startsWith(matrix.os, 'ubuntu') && matrix.method == 'native' | |
| run: | | |
| sudo apt-get update | |
| if [ "${{ matrix.iraf }}" ]; then | |
| sudo apt-get install --no-install-recommends iraf iraf-noao iraf-dev | |
| else | |
| echo "PYRAF_NO_IRAF=yes" >> $GITHUB_ENV | |
| fi | |
| sudo apt-get install --no-install-recommends build-essential libx11-dev | |
| sudo apt-get install --no-install-recommends python3-dev python3-pip python3-astropy python3-numpy-dev python3-setuptools python3-setuptools-scm python3-tk python3-pytest python3-pytest-cov ipython3 | |
| pip3 install "stsci.tools>=4.0.1" coverage | |
| - name: Setup dependencies, Ubuntu/pip | |
| if: startsWith(matrix.os, 'ubuntu') && matrix.method == 'pip' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --no-install-recommends iraf iraf-noao iraf-dev build-essential libx11-dev | |
| sudo apt-get install --no-install-recommends python3-dev python3-pip python3-venv | |
| pip3 install ipython | |
| - name: Setup dependencies, Mac | |
| if: startsWith(matrix.os, 'macos') && matrix.method == 'pip' | |
| run: | | |
| brew tap iraf-community/tap | |
| brew install iraf | |
| - name: Build PyRAF locally | |
| if: matrix.method == 'native' | |
| run: | | |
| python3 setup.py build_ext -i | |
| - name: Install PyRAF via pip | |
| if: matrix.method == 'pip' | |
| run: | | |
| python3 -m venv /tmp/pyraf-venv | |
| source /tmp/pyraf-venv/bin/activate | |
| python3 -m pip install pytest pyraf[test]@git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA | |
| - name: Run tests (locally built) | |
| if: matrix.method == 'native' | |
| run: | | |
| python3 -m pytest --cov=pyraf | |
| - name: Run tests (installed package) | |
| if: matrix.method == 'pip' | |
| run: | | |
| source /tmp/pyraf-venv/bin/activate | |
| python3 -m pytest -s --pyargs pyraf | |
| - name: "Upload coverage to Codecov" | |
| if: matrix.upload_coverage == 'yes' | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| fail_ci_if_error: false |