Skip to content

Merge pull request #1 from IndieHub25/jules/x-cli-impl-39009080692785… #2

Merge pull request #1 from IndieHub25/jules/x-cli-impl-39009080692785…

Merge pull request #1 from IndieHub25/jules/x-cli-impl-39009080692785… #2

Workflow file for this run

name: Python Client CI
on:
push:
branches: [ main ]
paths:
- 'source/py-cli/**'
pull_request:
branches: [ main ]
paths:
- 'source/py-cli/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./source/py-cli
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest requests-mock
pip install .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest