Skip to content

Bump version, add Python 3.11 and 3.12 to test matrix #77

Bump version, add Python 3.11 and 3.12 to test matrix

Bump version, add Python 3.11 and 3.12 to test matrix #77

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@v2
- name: Set up Python
uses: actions/setup-python@v2
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 pycodestyle coverage pytest
python3 setup.py 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}