Merge branch 'gabfl:main' into main #15
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
name: CI | |
on: [push, pull_request,workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
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} |