Skip to content

Bump pyparsing from 3.1.1 to 3.1.2 in /src #204

Bump pyparsing from 3.1.1 to 3.1.2 in /src

Bump pyparsing from 3.1.1 to 3.1.2 in /src #204

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Run tests
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up latest Python version
uses: actions/[email protected]
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 coverage bandit
sudo apt update && sudo apt install -y libmariadb-dev
pip install -r src/requirements.txt
# pip install bleach cryptography falcon gunicorn toml
- 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
- name: Lint with bandit
run: |
# Find common security issues
bandit -r src
- name: Test with unittest
run: |
cd src
coverage run tests/run_tests.py
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
env_vars: OS,PYTHON
fail_ci_if_error: true
#files: src/coverage.xml
flags: unittests
name: codecov-umbrella
#path_to_write_report: ./codecov_report.txt
verbose: true