Skip to content

Rename pytest.py to test_pytest.py #36

Rename pytest.py to test_pytest.py

Rename pytest.py to test_pytest.py #36

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- "README.md"
- "docs/**"
pull_request:
branches: [main]
paths-ignore:
- "README.md"
- "docs/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies for requirements and testing
run: |
python -m pip install --upgrade pip
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 pylint
run: pylint $(git ls-files '*.py') --disable=W0611,W0622
- name: Test with pytest
run: pytest --cov=src --cov-report=xml tests/