Skip to content

changed requirements.txt for workflow #4

changed requirements.txt for workflow

changed requirements.txt for workflow #4

Workflow file for this run

name: Testing
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pytest
- name: Analyze the code with pylint
run: |
pylint $(git ls-files '*.py')
- name: Run tests
run: |
pytest code/tests
- name: Run tests with coverage
run: |
pytest code/tests --cov=code/tests --cov-report=xml