Delete pylint directive #437
Workflow file for this run
This file contains hidden or 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: Python tests (system libmaxminddb) | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '3 15 * * SUN' | |
permissions: {} | |
jobs: | |
build: | |
strategy: | |
matrix: | |
env: [3.9, "3.10", 3.11, 3.12, 3.13] | |
# We don't test on Windows currently due to issues | |
# build libmaxminddb there. | |
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest] | |
name: Python ${{ matrix.env }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
env: | |
MAXMINDDB_REQUIRE_EXTENSION: 1 | |
MAXMINDDB_USE_SYSTEM_LIBMAXMINDDB: 1 | |
MM_FORCE_EXT_TESTS: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
persist-credentials: false | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # 6.0.1 | |
- name: Install tox | |
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh | |
- name: Install Python | |
if: matrix.env != '3.13' | |
run: uv python install --python-preference only-managed ${{ matrix.env }} | |
- name: Install libmaxminddb | |
run: sudo apt install libmaxminddb-dev | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' | |
- name: Install libmaxminddb | |
run: brew install libmaxminddb | |
if: matrix.os == 'macos-latest' | |
- name: "Work around macos arm64 homebrew directory changes" | |
if: runner.os == 'macOS' && runner.arch == 'ARM64' | |
run: | | |
echo "CFLAGS=-I/opt/homebrew/include" >> "$GITHUB_ENV" | |
echo "LDFLAGS=-L/opt/homebrew/lib" >> "$GITHUB_ENV" | |
- name: Build with Werror and Wall | |
run: uv build | |
env: | |
CFLAGS: "${{ env.CFLAGS }} -Werror -Wall -Wextra" | |
- name: Setup test suite | |
run: tox run -vv --notest --skip-missing-interpreters false | |
env: | |
TOX_GH_MAJOR_MINOR: ${{ matrix.env }} | |
- name: Run test suite | |
run: tox run --skip-pkg-install | |
env: | |
TOX_GH_MAJOR_MINOR: ${{ matrix.env }} |