From 7d4026763b9e5129d6e54f4b625572a95f60029a Mon Sep 17 00:00:00 2001 From: Austin Swinney Date: Mon, 16 Sep 2024 12:50:50 -0400 Subject: [PATCH] add workflow dispatch --- .github/workflows/Languages-Python-Example1.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Languages-Python-Example1.yml b/.github/workflows/Languages-Python-Example1.yml index 0d517cb..8377f37 100644 --- a/.github/workflows/Languages-Python-Example1.yml +++ b/.github/workflows/Languages-Python-Example1.yml @@ -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: @@ -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 @@ -43,4 +44,4 @@ jobs: - name: Run SLURM batch file run: | - sbatch run.sbatch + sbatch Languages/Python/Example1/run.slurm