Skip to content

Add lint + test workflow for v4-client-py #5

Add lint + test workflow for v4-client-py

Add lint + test workflow for v4-client-py #5

Workflow file for this run

name: "[v4-client-py] Lint, Test"
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- 'v4-client-py/**'
push:
paths:
- 'v4-client-py/**'
branches:
- main
- "release/*"
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./v4-client-py
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Dependencies
run: pip install -r requirements-lint.txt
- name: Lint
run: flake8
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./v4-client-py
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Dependencies
run: sudo pip install -r requirements-test.txt
- name: Run pytest
run: pytest