Skip to content

Commit

Permalink
Adding ci for develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Manuel Palomares committed May 23, 2022
1 parent ba648a1 commit 72ee015
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: DEVELOP TEST

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the develop branch for testing
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
testing:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Configuring Python 3.9 for testing
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

# Installing dependencies. Only flake8 for linting and flask for the app.
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r requirements.txt
# Linting with flake8. Leaving mistakes on purpose.
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# Running Unit test using unittest module. Only 1 test.
- name: Test with unittest
run: |
python -m unittest

0 comments on commit 72ee015

Please sign in to comment.