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

File tree

3 files changed

+43
-75
lines changed

3 files changed

+43
-75
lines changed

.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy