Skip to content

Commit

Permalink
Simplify test workflow file (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo authored Dec 14, 2024
1 parent e50a7d0 commit fd9560b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ on:
push:
branches:
- main
paths:
- '**.py'
- '**.cxx'
- '.github/workflows/test_suite.yml'

# Run test suite whenever commits are pushed to an open PR
pull_request:
paths:
- '**.py'
- '**.cxx'
- '.github/workflows/test_suite.yml'

# Run test suite every Sunday at 1AM
schedule:
Expand All @@ -17,14 +25,5 @@ jobs:
test_suite:
uses: mesh-adaptation/docs/.github/workflows/reusable_test_suite.yml@main
with:
install-command: 'python -m pip uninstall -y animate && python -m pip install -e .'
test-command: |
export GITHUB_ACTIONS_TEST_RUN=1
python $(which firedrake-clean)
export ANIMATE_CHECKPOINT_DIR=$(pwd)/.checkpoints
python -m coverage erase
python -m coverage run --source=animate -m pytest -v --durations=20 test
python -m coverage report
changed-files-patterns: |
**/*.py
**/*.cxx

0 comments on commit fd9560b

Please sign in to comment.