-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GH workflow * Remove Travis CI * Use supported envs only * Fix 3.9 pylint * Fix coveralls * Cache pre-commit and add changelog * Run on all branches and on each and every pull request * Coveralls :)
- Loading branch information
Showing
5 changed files
with
67 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[run] | ||
source = xknx | ||
relative_files = True | ||
|
||
omit = | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # run on all branches | ||
pull_request: | ||
branches: | ||
- '**' # run on all branches | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip packages | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-pypi-modules | ||
with: | ||
# pip cache files are stored in `~/.cache/pip` on Linux | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('requirements/production.txt', 'requirements/testing.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
- name: Cache pre-commit packages | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-pre-commit | ||
with: | ||
# pre-commit cache files are usually stored in `~/.cache/pre-commit` on Linux | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('.pre-commit-config.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements/testing.txt | ||
- name: CI | ||
run: | | ||
tox | ||
- name: Coveralls | ||
uses: johanneswilm/coveralls-python-action@develop | ||
with: | ||
parallel: true | ||
flag-name: Unit Test | ||
|
||
coveralls_finish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: johanneswilm/coveralls-python-action@develop | ||
with: | ||
parallel-finished: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters