mirror of
https://github.com/Dineshkarthik/telegram_media_downloader.git
synced 2025-01-03 04:32:01 +08:00
113 lines
2.9 KiB
YAML
113 lines
2.9 KiB
YAML
version: 2
|
|
|
|
jobs:
|
|
test-3.6:
|
|
docker:
|
|
- image: circleci/python:3.6.9
|
|
environment:
|
|
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
|
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
|
LOG_DIR: ${CIRCLE_ARTIFACTS}/testresults/
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Get setuptools
|
|
shell: /bin/bash
|
|
command: sudo pip install --upgrade pip setuptools codecov
|
|
- run:
|
|
name: Install dependencies
|
|
shell: /bin/bash
|
|
command: sudo make deps
|
|
- run:
|
|
name: Static Type Check - Mypy
|
|
shell: /bin/bash
|
|
command: sudo make static_type_check
|
|
- run:
|
|
name: Code Check - Pylint
|
|
shell: /bin/bash
|
|
command: sudo make pylint
|
|
- run:
|
|
name: Run test
|
|
shell: /bin/bash
|
|
command: |
|
|
sudo make -e test
|
|
codecov
|
|
- store_artifacts:
|
|
path: /tmp/circleci-artifacts
|
|
|
|
test-3.7:
|
|
docker:
|
|
- image: circleci/python:3.7.8
|
|
environment:
|
|
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
|
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
|
LOG_DIR: ${CIRCLE_ARTIFACTS}/testresults/
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Get setuptools
|
|
shell: /bin/bash
|
|
command: sudo pip install --upgrade pip setuptools codecov
|
|
- run:
|
|
name: Install dependencies
|
|
shell: /bin/bash
|
|
command: sudo make deps
|
|
- run:
|
|
name: Static Type Check - Mypy
|
|
shell: /bin/bash
|
|
command: sudo make static_type_check
|
|
- run:
|
|
name: Code Check - Pylint
|
|
shell: /bin/bash
|
|
command: sudo make pylint
|
|
- run:
|
|
name: Run test
|
|
shell: /bin/bash
|
|
command: |
|
|
sudo make -e test
|
|
codecov
|
|
- store_artifacts:
|
|
path: /tmp/circleci-artifacts
|
|
|
|
test-3.8:
|
|
docker:
|
|
- image: circleci/python:3.8.3
|
|
environment:
|
|
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
|
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
|
LOG_DIR: ${CIRCLE_ARTIFACTS}/testresults/
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Get setuptools
|
|
shell: /bin/bash
|
|
command: sudo pip install --upgrade pip setuptools codecov
|
|
- run:
|
|
name: Install dependencies
|
|
shell: /bin/bash
|
|
command: sudo make deps
|
|
- run:
|
|
name: Static Type Check - Mypy
|
|
shell: /bin/bash
|
|
command: sudo make static_type_check
|
|
- run:
|
|
name: Code Check - Pylint
|
|
shell: /bin/bash
|
|
command: sudo make pylint
|
|
- run:
|
|
name: Run test
|
|
shell: /bin/bash
|
|
command: |
|
|
sudo make -e test
|
|
codecov
|
|
- store_artifacts:
|
|
path: /tmp/circleci-artifacts
|
|
|
|
|
|
workflows:
|
|
version: 2
|
|
tests:
|
|
jobs:
|
|
- test-3.6
|
|
- test-3.7
|
|
- test-3.8
|