Skip to content

Commit

Permalink
Migrate project to GitHub actions
Browse files Browse the repository at this point in the history
Travis CI is no longer open source friendly.
  • Loading branch information
francoisfreitag committed Jan 26, 2021
1 parent bcac097 commit cdb8a70
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 50 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check

on:
- push
- pull_request

jobs:
build:
name: ${{ matrix.tox-environment }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
tox-environment:
- black
- flake8
- isort

env:
TOXENV: ${{ matrix.tox-environment }}

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install dependencies
run: python -m pip install tox

- name: Run
run: tox
25 changes: 25 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Documentation

on:
- push
- pull_request

jobs:
build:
name: Documentation
runs-on: ubuntu-latest

env:
TOXENV: docs

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install dependencies
run: python -m pip install tox

- name: Run
run: tox
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test

on:
- push
- pull_request

jobs:
test:
name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version:
- 3.6
- 3.7
- 3.8
tox-environment:
- django22
- django30
- django31
- djangomaster

env:
TOXENV: ${{ matrix.tox-environment }}

steps:
- name: Install LDAP libs
run: |
sudo apt-get update
# https://www.python-ldap.org/en/latest/installing.html#debian
sudo apt-get install slapd ldap-utils libldap2-dev libsasl2-dev
# https://github.com/python-ldap/python-ldap/issues/370
sudo apt-get install apparmor-utils
sudo aa-disable /usr/sbin/slapd
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: python -m pip install tox

- name: Run tests
run: tox
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

0 comments on commit cdb8a70

Please sign in to comment.