Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ci: TT-394 create file python-package.yml
  • Loading branch information
scastillo-jp committed Nov 4, 2021
commit bfbc62e00cf8ca8017736c59968a646afcee3ff3
39 changes: 39 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI process for time-tracker-bk app

on:
pull_request:
types: [opened, edited, reopened]
branches:
- master
#push:
#branches: [ master ]

jobs:
ci-test:
name: Unit tests and linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Initialize Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r V2/requirements.txt
- 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.
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
#- name: Build binary wheel and a source tarball
#run: python setup.py sdist
# - name: Publish distribution to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.test_pypi_password }}
# repository_url: https://test.pypi.org/legacy/