Skip to content

Commit

Permalink
add workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
swinney committed Sep 16, 2024
1 parent 480ec77 commit 7d40267
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/Languages-Python-Example1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: CI Test for mc_pi
on:
push:
branches:
- User_Doc-Python
- main
pull_request:
branches:
- User_Doc-Python
- main
workflow_dispatch: # This enables manual triggering of the workflow

jobs:
test:
Expand All @@ -24,11 +25,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # If you have dependencies listed in a requirements.txt
pip install -r requirements.txt # If you have a requirements.txt file in the repo
- name: Run mc_pi.py
run: |
python mc_pi.py
python Languages/Python/Example1/mc_pi.py
slurm:
runs-on: ubuntu-latest
Expand All @@ -43,4 +44,4 @@ jobs:
- name: Run SLURM batch file
run: |
sbatch run.sbatch
sbatch Languages/Python/Example1/run.slurm

0 comments on commit 7d40267

Please sign in to comment.