This file contains hidden or 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
| services: | |
| postgres: | |
| image: postgres:latest | |
| ports: | |
| - 5432/tcp | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v1 | |
| with: |
This file contains hidden or 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
| steps: | |
| - uses: appleboy/[email protected] | |
| with: | |
| to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
| token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
| message: ${{ github.repository }} starred! |
This file contains hidden or 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
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.8 | |
| - uses: actions/cache@v1 | |
| id: cache | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} |
This file contains hidden or 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
| strategy: | |
| matrix: | |
| python-version: [3.6, 3.7, 3.8] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - runs: pip install -U -r requirements.txt |
This file contains hidden or 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
| strategy: | |
| matrix: | |
| python-version: [3.6, 3.7, 3.8] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - runs: pip install -U -r requirements.txt |
This file contains hidden or 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
| local | |
| volume_cached_poetry_path = 'cached-poetry', | |
| volume_cached_poetry_deps = 'cached-deps', | |
| command_install = 'poetry install -vv', | |
| command_test = 'poetry run pytest .', | |
| step(name, commands, version='3.8') = { | |
| name: '%s-%s' % [name, version], | |
| image: 'python:%s' % version, |
This file contains hidden or 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
| definitions: | |
| caches: | |
| poetry-path: /root/.poetry | |
| poetry-venv: /root/.cache/pypoetry/virtualenvs | |
| steps: | |
| - step: &step-37 | |
| image: python:3.7 | |
| caches: | |
| - poetry-path |
This file contains hidden or 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
| definitions: | |
| caches: | |
| poetry-path: /root/.poetry | |
| poetry-venv: /root/.cache/pypoetry/virtualenvs | |
| pipelines: | |
| default: | |
| - step: | |
| name: deps-3.7 | |
| image: python:3.7 |
This file contains hidden or 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
| image: themattrix/tox-base:latest | |
| stages: | |
| - test | |
| py36-isort: | |
| stage: test | |
| script: | |
| - tox -e py36-isort | |
| tags: |
This file contains hidden or 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
| import enum | |
| import uuid | |
| import arrow | |
| import msgpack | |
| @enum.unique | |
| class Code(enum.IntEnum): | |
| DATETIME_ISO8601 = 0 |
NewerOlder