Skip to content

Commit

Permalink
debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tztsai committed Dec 4, 2023
1 parent da92658 commit 9e11316
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pyrealm_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,23 @@ jobs:

- name: Run profiling
id: profiling
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
# && github.ref == 'refs/heads/main'
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 # && github.ref == 'refs/heads/main'
run: |
git lfs pull
poetry run pytest -m "profiling" --profile-svg
mv prof/combined.prof profiling/profiling.prof
# mv prof/combined.svg profiling/profiling.svg
poetry run python profiling/report.py
- name: Remove LFS objects
run: git checkout pyrealm_build_data/

- name: Generate report
uses: stefanzweifel/git-auto-commit-action@v5
if: steps.profiling.outcome == 'success'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout *.nc # revert LFS objects
git add profiling/*
git commit -m "Auto-generated report"
git push origin
with:
file_pattern: 'profiling/*'
commit_message: Auto-generated report

- name: Upload coverage reports to Codecov
if: success() && (matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9)
Expand Down

0 comments on commit 9e11316

Please sign in to comment.