Skip to content

Delivery site selection in config flow #108

Delivery site selection in config flow

Delivery site selection in config flow #108

Workflow file for this run

name: Flake8 and pytest
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
run:
name: Run flake8/pytest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Register flake8 problem matcher
run: |
echo "::add-matcher::.github/workflows/flake8-matchers.json"
- 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 --max-complexity=10 --max-line-length=120 --statistics
- name: Test with pytest
run: |
pytest