Skip to content

Commit 7d69790

Browse files
committed
Test with GHA
Drop Travis CI and use Github Actions Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent 25d0ca0 commit 7d69790

3 files changed

Lines changed: 43 additions & 75 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: CI
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
distros:
8+
name: "Ubuntu with Python ${{ matrix.python-version }}"
9+
runs-on: "ubuntu-latest"
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
14+
steps:
15+
- name: Checkout
16+
uses: "actions/checkout@v2"
17+
- name: Install apt dependencies
18+
run: |
19+
set -ex
20+
sudo apt update
21+
sudo apt install -y ldap-utils slapd enchant libldap2-dev libsasl2-dev apparmor-utils
22+
- name: Disable AppArmor
23+
run: sudo aa-disable /usr/sbin/slapd
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: "Install Python dependencies"
29+
run: |
30+
set -xe
31+
python -V
32+
python -m pip install --upgrade pip setuptools
33+
python -m pip install --upgrade tox tox-gh-actions
34+
- name: "Test tox with Python ${{ matrix.python-version }}"
35+
run: "python -m tox"

.travis.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
envlist = py36,py37,py38,py39,py3-nosasltls,doc,py3-trace
99
minver = 1.8
1010

11+
[gh-actions]
12+
python =
13+
3.6: py36
14+
3.7: py37
15+
3.8: py38, doc, py3-nosasltls
16+
3.9: py39, py3-trace
17+
pypy3: pypy3
18+
1119
[testenv]
1220
deps =
1321
passenv = WITH_GCOV

0 commit comments

Comments
 (0)