on: [push, pull_request]

name: Tox on Fedora

permissions:
  contents: read

jobs:
  tox_test:
    name: Tox env "${{matrix.tox_env}}" on Fedora
    steps:
    - uses: actions/checkout@v4
    - name: Run Tox tests
      uses: fedora-python/tox-github-action@main
      with:
        tox_env: ${{ matrix.tox_env }}
        dnf_install: >
            @c-development openldap-devel python3-devel
            openldap-servers openldap-clients lcov clang-analyzer valgrind
            enchant python3-setuptools
    strategy:
      matrix:
        tox_env:
        - py38
        - py39
        - py310
        - py311
        - py312
        - py313
        - py3-nosasltls
        - py3-trace
        - pypy3
        - doc

    # Use GitHub's Linux Docker host
    runs-on: ubuntu-22.04
