Skip to content

Update packaging and linting setup #1

Update packaging and linting setup

Update packaging and linting setup #1

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install
run: python -m pip install ".[dev]"
- name: Lint
run: ruff .
- name: Type Check
run: mypy pe
test:
strategy:

Check failure on line 27 in .github/workflows/checks.yml

View workflow run for this annotation

GitHub Actions / tests

Invalid workflow file

The workflow is not valid. .github/workflows/checks.yml (Line: 27, Col: 5): Required property is missing: runs-on
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build and Install
run: |
python -m pip install "build"
python -m build
python -m pip install ".[dev]"
- name: Run Tests and Doctests
if: ${{ matrix.python-version == '3.9' }}
run: pytest --doctest-glob=\*.md
- name: Run Tests
if: ${{ matrix.python-version != '3.9' }}
run: |
pip install pytest
pytest