From 9fcf8195c72f33bd48a1f7bf7479b4c1283748ba Mon Sep 17 00:00:00 2001 From: Adrian Price-Whelan Date: Mon, 26 Aug 2024 19:56:49 -0400 Subject: [PATCH] forgot to restore test actions config --- .github/workflows/tests.yml | 91 ++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 47 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e82aad8..fe0b4193 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,50 +69,47 @@ jobs: python-version: ${{ matrix.python-version }} allow-prereleases: true - - name: WTF - run: echo ${{ needs.check_skip_flags.outputs.HEAD_COMMIT_MESSAGE }} - - # # For animation tests - # - uses: FedericoCarboni/setup-ffmpeg@v3 - # if: ${{ !startsWith(matrix.os, 'mac') }} - # continue-on-error: true - # with: - # # Not strictly necessary, but it may prevent rate limit - # # errors especially on GitHub-hosted macos machines. - # github-token: ${{ secrets.GITHUB_TOKEN }} - # ffmpeg-version: "6.1.0" - # id: setup-ffmpeg - - # # Mac: - # - name: Setup Mac - GSL - # if: startsWith(matrix.os, 'mac') - # run: | - # brew install gsl - - # # Ubuntu: - # - name: Setup Linux - GSL - # if: runner.os == 'Linux' - # run: | - # sudo apt-get update - # sudo apt-get install gsl-bin libgsl0-dev build-essential - # sudo apt-get install libhdf5-serial-dev # TODO: remove when h5py has 3.11 wheels - - # - name: Install package and dependencies - # run: python -m pip install -e ".[${{ matrix.pip-test-deps }}]" - # env: - # GALA_NOGSL: ${{ matrix.gala-nogsl }} - - # - name: Update versions if testing min versions - # if: matrix.numpy-version != 'latest' - # run: | - # python -m pip install numpy~=${{ matrix.numpy-version }} - - # - name: Run tests - # run: >- - # python -m pytest -ra --cov --cov-report=xml --cov-report=term - # --durations=20 . - - # - name: Upload coverage report - # uses: codecov/codecov-action@v4.5.0 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} + # For animation tests + - uses: FedericoCarboni/setup-ffmpeg@v3 + if: ${{ !startsWith(matrix.os, 'mac') }} + continue-on-error: true + with: + # Not strictly necessary, but it may prevent rate limit + # errors especially on GitHub-hosted macos machines. + github-token: ${{ secrets.GITHUB_TOKEN }} + ffmpeg-version: "6.1.0" + id: setup-ffmpeg + + # Mac: + - name: Setup Mac - GSL + if: startsWith(matrix.os, 'mac') + run: | + brew install gsl + + # Ubuntu: + - name: Setup Linux - GSL + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install gsl-bin libgsl0-dev build-essential + sudo apt-get install libhdf5-serial-dev # TODO: remove when h5py has 3.11 wheels + + - name: Install package and dependencies + run: python -m pip install -e ".[${{ matrix.pip-test-deps }}]" + env: + GALA_NOGSL: ${{ matrix.gala-nogsl }} + + - name: Update versions if testing min versions + if: matrix.numpy-version != 'latest' + run: | + python -m pip install numpy~=${{ matrix.numpy-version }} + + - name: Run tests + run: >- + python -m pytest -ra --cov --cov-report=xml --cov-report=term + --durations=20 . + + - name: Upload coverage report + uses: codecov/codecov-action@v4.5.0 + with: + token: ${{ secrets.CODECOV_TOKEN }}