Skip to content

ci | add github action for pytest #1

ci | add github action for pytest

ci | add github action for pytest #1

Workflow file for this run

name: pytest
on: [push]
jobs:
build:
runs-on: ubuntu-latest

Check failure on line 5 in .github/workflows/pytest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pytest.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html