Skip to content

Create python-test-workflow.yml #1

Create python-test-workflow.yml

Create python-test-workflow.yml #1

name: Python test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup
uses: actions/setup-python@v6
with:
python-version: '3.x'

Check failure on line 11 in .github/workflows/python-test-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-test-workflow.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
- name: Lint
run: |
flake8 . --count --show-source --statistics --exclude=./test_*.py
- name: Test
run: |
pytest test_*.py