Skip to content

pep-8 fix

pep-8 fix #92

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes gcc python3-dev libsqlcipher-dev
pip install -U pip
pip install -r requirements-test.txt
pip install .
- name: Run pycodestyle
run: |
pycodestyle --exclude=venv --ignore=E501 .
- name: Run pytest
run: |
coverage run --source=. -m pytest
- name: Generate coverage report
run: |
coverage report -m
- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}