From 9578b4fb622b57214cce8f96bcab754154aeccb4 Mon Sep 17 00:00:00 2001 From: Josh Meyers Date: Fri, 26 Apr 2024 17:26:38 -0700 Subject: [PATCH] bump CI --- .github/workflows/ci.yml | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d5cd75e..e1922d99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,15 +49,6 @@ jobs: with: python-version: ${{ matrix.py }} - - name: Cache pip - uses: actions/cache@v3 - with: - path: | - ~/.cache/pip - $HOME/Library/Caches/Homebrew - /usr/local/Cellar - key: ${{ runner.os }}-${{ matrix.py }}-${{ matrix.CXX}}-pip-${{ hashFiles('requirements.txt') }} - - name: Install libfftw, etc. on linux (needed for GalSim) if: matrix.os == 'ubuntu-latest' run: | @@ -81,6 +72,9 @@ jobs: brew link --overwrite eigen || true - name: Install dependencies + env: + LIBRARY_PATH: /opt/homebrew/lib:$LIBRARY_PATH + LD_LIBRARY_PATH: /opt/homebrew/lib:$LD_LIBRARY_PATH run: | python -m pip install -U pip @@ -101,25 +95,13 @@ jobs: run: pip list - name: Build batoid - run: CMAKE_VERBOSE_MAKEFILE=1 python setup.py develop + run: CMAKE_VERBOSE_MAKEFILE=1 pip install . - name: Run unit tests run: pytest --cov=batoid --cov-report=xml --cov-config tests/.coveragerc --skip_gha --durations=8 -ra - - name: Upload coverage to codecov - run: | - pwd -P - ls -la - env - coverage combine || true # (Not necessary I think, but just in case.) - coverage report - ls -la - bash <(curl -s https://codecov.io/bash) - - - name: Pre-cache cleanup - continue-on-error: true - run: | - # This was helpful in Travis. Not sure how important it is in GHA. - rm -rfv $HOME/.cache/pip/log - rm -rfv $HOME/.cache/pip/http - if ${{ runner.os == 'macOS' }}; then brew cleanup || true; fi + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true \ No newline at end of file