Skip to content

Update boto3 requirement from ==1.21.* to >=1.21,<1.27 #501

Update boto3 requirement from ==1.21.* to >=1.21,<1.27

Update boto3 requirement from ==1.21.* to >=1.21,<1.27 #501

Workflow file for this run

name: Lint and Unit Tests
on:
pull_request:
branches: [master]
workflow_dispatch:
concurrency:
group: lint_unit_tests-${{ github.head_ref }}
cancel-in-progress: true
jobs:
lint_and_test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
steps:
- name: Checking out repo
uses: actions/checkout@v3
- name: Check if python changes are present
id: check
env:
GITHUB_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
continue-on-error: true
run: ./scripts/ci_check_no_file_changes.sh python
- name: Set up Python ${{ matrix.python-version }}
if: steps.check.outcome == 'failure'
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: steps.check.outcome == 'failure'
run: make pipelinewise
- name: Check code formatting
if: steps.check.outcome == 'failure'
run: |
. .virtualenvs/pipelinewise/bin/activate
find pipelinewise tests -type f -name '*.py' | xargs unify --check-only
- name: Pylinting
if: steps.check.outcome == 'failure'
run: |
. .virtualenvs/pipelinewise/bin/activate
pylint pipelinewise tests
- name: Pep8
if: steps.check.outcome == 'failure'
run: |
. .virtualenvs/pipelinewise/bin/activate
flake8 pipelinewise --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Pep8 complexity
if: steps.check.outcome == 'failure'
run: |
. .virtualenvs/pipelinewise/bin/activate
flake8 pipelinewise --count --max-complexity=15 --max-line-length=120 --statistics
- name: Run Unit tests
if: steps.check.outcome == 'failure'
run: |
. .virtualenvs/pipelinewise/bin/activate
pytest --cov=pipelinewise --cov-fail-under=77 -v tests/units