2018-04-10 06:16:38 +00:00
|
|
|
language: python
|
|
|
|
|
|
|
|
python:
|
|
|
|
- "3.6"
|
2020-02-01 10:22:02 +00:00
|
|
|
- "3.7"
|
2021-01-01 10:34:04 +00:00
|
|
|
- "3.8"
|
|
|
|
- "3.9"
|
2018-04-10 06:16:38 +00:00
|
|
|
|
2021-10-09 12:13:30 +00:00
|
|
|
before_install:
|
|
|
|
- pip install poetry
|
|
|
|
install:
|
|
|
|
- poetry install
|
2018-04-10 06:16:38 +00:00
|
|
|
script:
|
2021-10-09 12:13:30 +00:00
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
- poetry run flake8 sync_ics2gcal --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
|
|
- poetry run flake8 sync_ics2gcal --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
|
|
# run tests
|
|
|
|
- poetry run pytest -v
|