Skip to content

docs: Create package documentation #3

docs: Create package documentation

docs: Create package documentation #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest pytest-asyncio pytest-timeout pytest-mock flake8 Flake8-pyproject flake8-docstrings flake8-bugbear
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --select=E9,F63,F7,F82,E101,B002,B004,B006,B015,B018,B025 --show-source
# exit-zero treats all errors as warnings.
flake8 . --exit-zero
- name: Run tests with pytest
run: |
pytest