31 lines
758 B
YAML
31 lines
758 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: deps
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pytest
|
|
- name: compile
|
|
run: python -m compileall -q omni tools
|
|
- name: tests
|
|
run: python -m pytest tests -q
|
|
- name: smoke cli
|
|
run: |
|
|
python -m omni --help > /dev/null
|
|
python -c "import omni.sources as s; print('sources', len(s.all_sources()))" |