Skip to content

Fixed test coverage #164

Fixed test coverage

Fixed test coverage #164

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.9', '3.10', '3.11', '3.12'] # Maybe soon?, '3.13']
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 ruff
pip install -e '.[tests]'
- name: Get versions
run: |
python -V
pip freeze
- name: ruff
run: ruff check --output-format=github
- 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 ruff mypy
- name: build docs
run: make html
working-directory: docs/
- name: ruff
run: ruff check --output-format=github
- name: mypy
run: mypy python_utils setup.py
- name: pyright
run: pyright