Skip to content

docs: new documentation #2

docs: new documentation

docs: new documentation #2

Workflow file for this run

name: Unit Tests (on PR)
on:
push:
branches: [ "main" ]
permissions:
contents: read
pull-requests: write
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
set -o pipefail
python -m pytest tests | tee pytest-coverage.txt