Skip to content

Commit

Permalink
bump CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeyers314 committed Apr 27, 2024
1 parent a7850d7 commit 9578b4f
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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

0 comments on commit 9578b4f

Please sign in to comment.