Skip to content

Create py_test.yml

Create py_test.yml #14

Workflow file for this run

name: "Static analysis & tests"
on:
push:
branches: [ "master" ]
pull_request:
jobs:
python-tests:
name: Run Python Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
pip install pytest
pip install -r requirements.txt
pip install pylint
- name: Run tests
run: |
pytest test/test_types.py
pytest test/test_metadata.py
pytest test/test_comparator.py
- name: Analysing the code with pylint
run: |
pylint --fail-under=6.0 --ignore-patterns=test_.*?py --max-line-length=180 $(git ls-files '*.py')