Bump mariadb from 1.1.10 to 1.1.11 in /src #234
Workflow file for this run
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
# 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 |