Merge pull request #43 from zeevro/develop #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pytest | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 4 | |
strategy: | |
matrix: | |
python-version: ['pypy3', '3.9', '3.10', '3.11', '3.12'] # Maybe soon?, '3.13'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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 |