31 lines
795 B
YAML
31 lines
795 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v7
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install package and test dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[test]"
|
|
- name: Run CPU unit tests
|
|
run: python -m pytest -q
|
|
- name: Run registry security style checks
|
|
run: python -m ruff check --select E702 .
|
|
- name: Build wheel from clean metadata
|
|
run: python -m pip wheel . --no-deps --wheel-dir dist
|