Some checks failed
Build / Test on ubuntu-latest (push) Successful in 2m4s
Examples / Test examples (ubuntu-latest, 3.10) (push) Successful in 2m16s
Lint / lint (push) Successful in 1m25s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
33 lines
581 B
Makefile
33 lines
581 B
Makefile
.PHONY: build test typecheck clean examples
|
|
|
|
build:
|
|
poetry install
|
|
|
|
test:
|
|
python -c "import aw_client"
|
|
pytest -s -vv tests/test_requestqueue.py tests/test_profile.py tests/test_profile_config.py
|
|
|
|
test-integration:
|
|
pytest -v tests/test_client.py
|
|
|
|
test-examples:
|
|
cd examples; pytest -v *.py
|
|
cd examples; yes | python3 load_dataframe.py
|
|
cd examples; python3 working_hours.py 'activitywatch|aw-|github.com' fakedata
|
|
|
|
lint:
|
|
ruff check .
|
|
|
|
lint-fix:
|
|
ruff check --fix .
|
|
|
|
typecheck:
|
|
poetry run mypy
|
|
|
|
format:
|
|
ruff format .
|
|
|
|
clean:
|
|
rm -rf build dist
|
|
rm -rf aw_client/__pycache__
|