using python-ldap instead of ldif3 #127
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: Test | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 5 | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| django-version: ['4.2', '5.1', '5.2', 'main'] | |
| exclude: | |
| # No such tox envs: | |
| - { python-version: '3.12', django-version: '4.2' } | |
| - { python-version: '3.13', django-version: '4.2' } | |
| - { python-version: '3.9', django-version: '5.1' } | |
| - { python-version: '3.9', django-version: '5.2' } | |
| - { python-version: '3.9', django-version: 'main' } | |
| - { python-version: '3.10', django-version: 'main' } | |
| - { python-version: '3.11', django-version: 'main' } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: | | |
| setup.py | |
| tox.ini | |
| - name: Install system deps for python-ldap | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libldap2-dev libsasl2-dev libssl-dev | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade tox tox-gh-actions | |
| - name: Tox tests | |
| run: tox | |
| env: | |
| DJANGO: ${{ matrix.django-version }} | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| name: Python ${{ matrix.python-version }} |