Skip to content

Bump pylint from 3.1.0 to 3.1.1 #603

Bump pylint from 3.1.0 to 3.1.1

Bump pylint from 3.1.0 to 3.1.1 #603

Workflow file for this run

name: Test against different Python version
on:
push:
branches: [ master ]
pull_request:
jobs:
python_tests:
runs-on: ubuntu-latest
strategy:
# Do not fail if one the tests did not pass
fail-fast: false
matrix:
# Python version(s) to use when running the tests
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# Docker images of MySQL-compliant databases to run the tests suite on
database:
- "mysql:8.0.20"
services:
mysql:
image: ${{ matrix.database }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: index_digest
ports:
- "53306:3306"
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4.1.5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# https://github.com/actions/cache/blob/main/examples.md#using-pip-to-get-cache-location
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
make install
- name: Linter
run: make lint
- name: Set up the database
run: |
docker ps
mysql --protocol=tcp --port=53306 -u root --password="" -v < setup.sql
# import the test schema files
"./sql/populate.sh"
mysql --protocol=tcp --port=53306 -uindex_digest -pqwerty index_digest -v -e '\s; SHOW TABLES; SHOW DATABASES;'
- name: Tests with code coverage
run: make coverage
# https://coveralls-python.readthedocs.io/en/latest/usage/index.html
# upload coverage report for just one of Python version matrix runs
- name: Upload coverage report to Coveralls
if: matrix.python-version == '3.9'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github