ci: воркфлоу в .gitea/workflows (GitHub-токен без scope workflow отклоняет .github/workflows), копия для GitHub в ci/
Some checks failed
ci / test (3.10) (push) Has been cancelled
ci / test (3.11) (push) Has been cancelled
ci / test (3.12) (push) Has been cancelled

This commit is contained in:
ENI
2026-10-26 20:16:57 +03:00
parent c9c0a11ef7
commit f9719b9149
3 changed files with 38 additions and 0 deletions

31
ci/github-actions-ci.yml Normal file
View File

@@ -0,0 +1,31 @@
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()))"