Merge pull request #32 from datazip-inc/feat/start_date_in_log_based #46
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
LOGGING_CONF_FILE: ./sample_logging.conf | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ 3.6, 3.7, 3.8 ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup virtual env | |
run: | | |
make create_venv | |
. ./venv/bin/activate | |
make upgrade_pip install_dep | |
make check_dep | |
- name: Pylinting | |
run: | | |
source ./venv/bin/activate | |
make pylint | |
- name: Unit Tests and coverage | |
run: | | |
source ./venv/bin/activate | |
make test_cov |