Skip to content

cleanup listener

cleanup listener #34

Workflow file for this run

name: Run Tests and Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre-commit:
name: Static Code Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: 'pip'
- uses: pre-commit/action@v3.0.0
test:
steps:

Check failure on line 23 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / Run Tests and Linting

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 23, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.11
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install .
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- 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. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest