FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CI workflow improvements by merlinz01 · Pull Request #603 · python-ldap/python-ldap · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .yml  (2) All 1 file type selected
Only manifest files
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
66 changes: 43 additions & 23 deletions .github/workflows/ci.yml
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
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
---
name: CI

on:
push:
pull_request:
schedule:
# every Monday
- cron: '30 4 * * 1'
workflow_dispatch:

permissions:
contents: read

jobs:
distros:
name: "Ubuntu with Python ${{ matrix.python-version }}"
runs-on: "${{ matrix.image }}"
test_ubuntu:
name: "Test with Python ${{ matrix.python-version }} on ${{ matrix.image }}"
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
Expand All @@ -31,24 +27,48 @@ jobs:
- "ubuntu-22.04"
steps:
- name: Checkout
uses: "actions/checkout@v4"
uses: actions/checkout@v5
- name: Install apt dependencies
run: |
set -ex
sudo apt update
sudo apt install -y ldap-utils slapd enchant-2 libldap2-dev libsasl2-dev apparmor-utils
run: >
sudo apt-get update &&
sudo apt-get install -y ldap-utils slapd enchant-2 libldap2-dev libsasl2-dev apparmor-utils
- name: Disable AppArmor
run: sudo aa-disable /usr/sbin/slapd
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9"
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: "Install Python dependencies"
run: |
set -xe
python -V
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade tox tox-gh-actions
- name: "Test tox with Python ${{ matrix.python-version }}"
run: "python -m tox"
activate-environment: true
- name: Install Python dependencies
run: >
uv pip install --upgrade pip setuptools tox tox-gh-actions
- name: Test
run: python -m tox

test_fedora:
name: "Test with tox env ${{ matrix.tox_env }} on Fedora"
runs-on: ubuntu-22.04
strategy:
matrix:
tox_env:
- py39
- py310
- py311
- py312
- py313
- py3-nosasltls
- py3-trace
- pypy3
- doc
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Test
uses: fedora-python/tox-github-action@v41.0
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
35 changes: 0 additions & 35 deletions .github/workflows/tox-fedora.yml

This file was deleted.


Back | FazBrowse Home | New Git URL