Skip to content

Commit b6c1620

Browse files
authored
Use GitHub Actions instead of Travis CI (#51)
1 parent 0650c78 commit b6c1620

File tree

5 files changed

+65
-59
lines changed

5 files changed

+65
-59
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

.github/workflows/main.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
runs-on: ${{ matrix.platform }}
12+
strategy:
13+
max-parallel: 8
14+
matrix:
15+
platform:
16+
- ubuntu-latest
17+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip setuptools wheel
29+
python -m pip install flake8
30+
python -m pip install -e .[tests_cov]
31+
32+
- name: Unit Tests
33+
run: pytest --color=yes --cov=click_option_group --cov-report=term --cov-report=lcov:coverage.info
34+
35+
- name: Coveralls
36+
if: ${{ matrix.python-version == '3.8' }}
37+
uses: coverallsapp/github-action@v2
38+
with:
39+
format: lcov
40+
file: coverage.info
41+
42+
- name: flake8 Static Analysis
43+
if: ${{ matrix.python-version == '3.11' }}
44+
run: flake8 click_option_group/ tests/ setup.py
45+
46+
docs:
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: actions/setup-python@v2
52+
with:
53+
python-version: "3.11"
54+
55+
- name: Install dependencies
56+
run: |
57+
python -m pip install --upgrade pip setuptools wheel
58+
python -m pip install -e .[docs]
59+
60+
- name: Build Docs
61+
run: make -C docs/ html

.travis.yml

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

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def get_long_description():
3737
'Click>=7.0,<9',
3838
],
3939
extras_require={
40-
'docs': ['sphinx>=3.0, <6', 'Pallets-Sphinx-Themes', 'm2r2'],
40+
'docs': ['sphinx', 'Pallets-Sphinx-Themes', 'm2r2'],
4141
'tests': ['pytest'],
42-
'tests_cov': ['pytest', 'pytest-cov', 'coverage <7', 'coveralls'],
42+
'tests_cov': ['pytest', 'pytest-cov', 'coverage', 'coveralls'],
4343
},
4444
url='https://github.com/click-contrib/click-option-group',
4545
project_urls={

tox.ini

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

0 commit comments

Comments
 (0)