Skip to content

Commit cdb8a70

Browse files
Migrate project to GitHub actions
Travis CI is no longer open source friendly.
1 parent bcac097 commit cdb8a70

File tree

4 files changed

+107
-50
lines changed

4 files changed

+107
-50
lines changed

.github/workflows/check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
name: ${{ matrix.tox-environment }}
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
tox-environment:
16+
- black
17+
- flake8
18+
- isort
19+
20+
env:
21+
TOXENV: ${{ matrix.tox-environment }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@v2
28+
29+
- name: Install dependencies
30+
run: python -m pip install tox
31+
32+
- name: Run
33+
run: tox

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Documentation
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
name: Documentation
10+
runs-on: ubuntu-latest
11+
12+
env:
13+
TOXENV: docs
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
21+
- name: Install dependencies
22+
run: python -m pip install tox
23+
24+
- name: Run
25+
run: tox

.github/workflows/test.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test:
9+
name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version:
16+
- 3.6
17+
- 3.7
18+
- 3.8
19+
tox-environment:
20+
- django22
21+
- django30
22+
- django31
23+
- djangomaster
24+
25+
env:
26+
TOXENV: ${{ matrix.tox-environment }}
27+
28+
steps:
29+
- name: Install LDAP libs
30+
run: |
31+
sudo apt-get update
32+
# https://www.python-ldap.org/en/latest/installing.html#debian
33+
sudo apt-get install slapd ldap-utils libldap2-dev libsasl2-dev
34+
# https://github.com/python-ldap/python-ldap/issues/370
35+
sudo apt-get install apparmor-utils
36+
sudo aa-disable /usr/sbin/slapd
37+
38+
- uses: actions/checkout@v2
39+
40+
- name: Set up Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v2
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
45+
- name: Install dependencies
46+
run: python -m pip install tox
47+
48+
- name: Run tests
49+
run: tox

.travis.yml

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

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