Update push_event_workflow.yml #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push Event Workflow | |
on: | |
push: # push request on 'develop' | |
branches: | |
- develop | |
pull_request: # pull request with target main | |
branches: | |
- main | |
jobs: | |
unit-testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name : Checkout code | |
uses : actions/checkout@v4 | |
- name : Install Packages | |
run : pip install ug4py-base matplotlib ipython pyvista nbformat trame ipywidgets | |
- name : Run tests | |
run : | | |
python -m unittest tests/integration/test-solvers.py | |
ls | |
cd $HOME | |
ls | |
- name: Push to main | |
if: success() | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git checkout main | |
git merge develop | |
git push origin main |