Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Docs

on: [push, pull_request]

env:
PY_COLORS: 1

jobs:
sphinx:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox
- name: Build docs
env:
TOXENV: docs
run: tox

twine-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox twine wheel
- name: Check twine readme rendering
env:
TOXENV: twine-check
run: |
python3 setup.py sdist bdist_wheel
tox
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on: [push, pull_request]

env:
PY_COLORS: 1

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@stable
with:
black_args: ". --check"
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2
71 changes: 71 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Test

on: [push, pull_request]

env:
PY_COLORS: 1

jobs:
unit:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: 3.6
toxenv: py36
- python-version: 3.7
toxenv: py37
- python-version: 3.8
toxenv: py38
steps:
- 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: pip install tox pytest-github-actions-annotate-failures
- name: Run tests
env:
TOXENV: ${{ matrix.toxenv }}
run: tox

functional:
runs-on: ubuntu-20.04
strategy:
matrix:
toxenv: [py_func_v4, cli_func_v4]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox pytest-github-actions-annotate-failures
- name: Run tests
env:
TOXENV: ${{ matrix.toxenv }}
run: tox

coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install tox pytest-github-actions-annotate-failures
- name: Run tests
env:
PY_COLORS: 1
TOXENV: cover
run: tox
- name: Upload codecov coverage
uses: codecov/codecov-action@v1
with:
files: ./coverage.xml
flags: unit
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"regexManagers": [
{
"fileMatch": ["^.env$"],
"fileMatch": ["^tools/functional/fixtures/.env$"],
"matchStrings": ["GITLAB_TAG=(?<currentValue>.*?)\n"],
"depNameTemplate": "gitlab/gitlab-ce",
"datasourceTemplate": "docker",
Expand Down
108 changes: 0 additions & 108 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions docker-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-r requirements.txt
-r test-requirements.txt
docker-compose==1.28.2 # prevent inconsistent .env behavior from system install
pytest-console-scripts
pytest-docker
File renamed without changes.