specify branch for testing #1
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: CI Test for mc_pi | |
on: | |
push: | |
branches: | |
- User_Doc-Python | |
pull_request: | |
branches: | |
- User_Doc-Python | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' # Specify the required Python version | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt # If you have dependencies listed in a requirements.txt | |
- name: Run mc_pi.py | |
run: | | |
python mc_pi.py | |
slurm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install SLURM | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y slurm-wlm | |
- name: Run SLURM batch file | |
run: | | |
sbatch run.sbatch |