Patch up python-v2 #156
This file contains 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: "[v4-client-py] Lint, Test" | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
paths: | |
- 'v4-client-py-v2/**' | |
push: | |
paths: | |
- 'v4-client-py-v2/**' | |
branches: | |
- main | |
- "release/*" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./v4-client-py-v2 | |
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: poetry install | |
- name: Lint | |
run: flake8 | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./v4-client-py-v2 | |
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: poetry install | |
- name: Run pytest | |
run: pytest |