-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,640 additions
and
2,330 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
jobs: | ||
build: | ||
name: Lint & Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tools | ||
run: | | ||
python -m pip install . '.[dev]' | ||
- name: Lint with ruff | ||
run: | | ||
ruff src | ||
- name: Check format with black | ||
run: | | ||
black --check src | ||
- name: Run tests | ||
run: | | ||
python -m unittest discover |
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 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ dist/ | |
*.pyc | ||
*.egg-info/ | ||
.coverage | ||
.ruff_cache/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
.PHONY: lint test coverage build clean upload all | ||
|
||
lint: | ||
pylint gkeepapi | ||
-ruff --fix src | ||
black src | ||
|
||
test: | ||
python3 -m unittest discover | ||
|
||
coverage: | ||
coverage run --source gkeepapi -m unittest discover | ||
coverage run --source src -m unittest discover | ||
coverage report | ||
coverage html | ||
|
||
build: gkeepapi/*.py | ||
python3 setup.py bdist_wheel --universal | ||
build: src/gkeepapi/*.py | ||
python3 -m build | ||
|
||
clean: | ||
rm -f dist/*.whl | ||
rm -rf build dist | ||
|
||
upload: | ||
twine upload dist/*.whl | ||
|
||
all: build upload | ||
all: lint test build upload |
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 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 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
Oops, something went wrong.