From f85dacd8cac34e2010fc12a7971461ca62e5b268 Mon Sep 17 00:00:00 2001 From: Osama-Rashid <40798025+Osama-Rashid@users.noreply.github.com> Date: Wed, 24 Nov 2021 10:39:14 +0500 Subject: [PATCH] Added the github workflow for CI (#190) * Added the CI workflow which runs the scripts under the scripts/ folder * testing ci workflow * Gave required permission to the CI script * Removed a typo * Added shell parameter to job step in the workflow * Added the sh command to run the script * Added the command to install flake8 for running the ci workflow * Corrected a typo --- .github/workflows/ci_workflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci_workflow.yml diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml new file mode 100644 index 0000000..1cac7b1 --- /dev/null +++ b/.github/workflows/ci_workflow.yml @@ -0,0 +1,24 @@ +name: CI + +on: + # Triggers the workflow on pull request events for the main and devel branch + pull_request: + branches: [ main, devel ] + + # Allows running this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Contains a single job called "ci" + ci: + runs-on: ubuntu-latest + steps: + # Checks out repository under $GITHUB_WORKSPACE, so job can access it + - uses: actions/checkout@v2 + - name: Install flake8 + run: sudo apt install flake8 + - name: Give executable permissions to the script + run: chmod a+x scripts/run_ci.sh + - name: Run the ci script in scripts folder + run: sh scripts/run_ci.sh + shell: bash