Skip to content

Commit f85dacd

Browse files
authored
Added the github workflow for CI (bregman-arie#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
1 parent 3f3f247 commit f85dacd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci_workflow.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
# Triggers the workflow on pull request events for the main and devel branch
5+
pull_request:
6+
branches: [ main, devel ]
7+
8+
# Allows running this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
# Contains a single job called "ci"
13+
ci:
14+
runs-on: ubuntu-latest
15+
steps:
16+
# Checks out repository under $GITHUB_WORKSPACE, so job can access it
17+
- uses: actions/checkout@v2
18+
- name: Install flake8
19+
run: sudo apt install flake8
20+
- name: Give executable permissions to the script
21+
run: chmod a+x scripts/run_ci.sh
22+
- name: Run the ci script in scripts folder
23+
run: sh scripts/run_ci.sh
24+
shell: bash

0 commit comments

Comments
 (0)