Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 7d40c55

Browse files
committed
Run tests through GitHub actions
1 parent b84aeae commit 7d40c55

5 files changed

Lines changed: 145 additions & 19 deletions

File tree

.github/workflows/doc-check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: doc-check
2+
on: [push]
3+
4+
jobs:
5+
check-doc:
6+
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
11+
- uses: actions/checkout@v1
12+
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.7
17+
18+
- name: Install dmenv
19+
uses: TankerHQ/dmenv-install-action@v1.0.0
20+
with:
21+
dmenv-version: 0.20.0
22+
23+
- name: Prepare project for development
24+
run: dmenv install
25+
26+
- name: Check doc builds without warnings
27+
run: |
28+
dmenv run -- sphinx-build -W docs docs/_build/html
29+
30+
31+

.github/workflows/doc-deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: doc-deploy
2+
on:
3+
push:
4+
branches:
5+
master
6+
7+
jobs:
8+
run_tests:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
14+
- uses: actions/checkout@v1
15+
16+
- name: Set up Python 3.7
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.7
20+
21+
- name: Install dmenv
22+
uses: TankerHQ/dmenv-install-action@v1.0.0
23+
with:
24+
dmenv-version: 0.20.0
25+
26+
- name: Prepare project for development
27+
run: dmenv install
28+
29+
- name: Build documentation
30+
run: |
31+
dmenv install
32+
dmenv run -- sphinx-build -W docs docs/_build/html
33+
34+
- name: Deploy to GitHub pages
35+
uses: maxheld83/ghpages@v0.1.1
36+
env:
37+
BUILD_DIR: docs/_build/html
38+
GH_PAT: ${{ secrets.GH_PAT }}
39+
40+
41+

.github/workflows/linters.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: linters
2+
3+
on: [push]
4+
5+
jobs:
6+
run_linters:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
12+
- uses: actions/checkout@v1
13+
14+
- name: Set up Python 3.7
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.7
18+
19+
- name: Install dmenv
20+
uses: TankerHQ/dmenv-install-action@v1.0.0
21+
with:
22+
dmenv-version: 0.20.0
23+
24+
- name: Prepare project for development
25+
run: dmenv install
26+
27+
- name: Run black
28+
run: |
29+
dmenv run -- black --check .
30+
31+
- name: Run mypy
32+
run: |
33+
MYPYPATH=stubs dmenv run -- mypy --ignore-missing-imports --strict cli_ui
34+
35+
- name: Run pyflakes
36+
run: |
37+
dmenv run -- pyflakes cli_ui/__init__.py cli_ui/tests/test_cli_ui.py
38+
39+

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tests
2+
3+
on: [push]
4+
5+
jobs:
6+
run_tests:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: [3.5, 3.6, 3.7, 3.8]
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
15+
steps:
16+
17+
- uses: actions/checkout@v1
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dmenv
25+
uses: TankerHQ/dmenv-install-action@v1.0.0
26+
with:
27+
dmenv-version: 0.20.0
28+
29+
- name: Prepare project for development
30+
run: dmenv install
31+
32+
- name: Run tests
33+
run: dmenv run -- pytest --cov . --cov-report term
34+

.travis.yml

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

0 commit comments

Comments
 (0)