forked from bregman-arie/devops-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…regman-arie#254) * updated the CI/CD workflow so it works * fixing typos * changed the branch name for the CI pull request * fixing PEP8 issues inside binary_search.py * removed venv from flask8 local testing * fixing executable permissions
- Loading branch information
Lewis Brogan
authored
Jun 27, 2022
1 parent
080c538
commit 84640e8
Showing
2 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
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: | ||
branches: [ master ] | ||
|
||
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 | ||
- uses: actions/checkout@v3 | ||
- name: Install flake8 | ||
run: sudo apt install flake8 | ||
- name: Give executable permissions to the script | ||
run: pip install flake8 | ||
- name: Give executable permissions to run_ci.sh inside the scripts directory | ||
run: chmod a+x scripts/run_ci.sh | ||
- name: Run the ci script in scripts folder | ||
- name: Run the ci script inside the scripts folder | ||
run: sh scripts/run_ci.sh | ||
shell: bash | ||
shell: bash |
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