Skip to content

pytest

pytest #155

Workflow file for this run

name: pytest
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 4
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools flake8
pip install -e '.[tests]'
- name: Get versions
run: |
python -V
pip freeze
- name: flake8
run: flake8 -v python_utils setup.py
- name: pytest
run: py.test
docs_and_lint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -e '.[docs,tests]' pyright flake8 mypy
- name: build docs
run: make html
working-directory: docs/
- name: flake8
run: flake8 -v python_utils setup.py
- name: mypy
run: mypy python_utils setup.py
- name: pyright
run: pyright