Skip to content

Strengthen validator with typed metadata and bounded field checks #21

Strengthen validator with typed metadata and bounded field checks

Strengthen validator with typed metadata and bounded field checks #21

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and dependencies
run: |
pip install -e ".[dev]" --break-system-packages 2>/dev/null || pip install -e . pyyaml rich click pytest
- name: Run linting
run: |
pip install flake8 --break-system-packages 2>/dev/null || pip install flake8
flake8 src/airc --max-line-length=120 --ignore=E501,W503
- name: Run tests
run: pytest tests/ -v --tb=short
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build package
run: |
pip install build
python -m build
- name: Store build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/