Pylint alerts corrections as part of intervention experiment #81 (#82) #88
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] | |
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 pycodestyle coverage pytest setuptools | |
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} |