Add Gitea Actions workflow: ci.yml
Some checks failed
CI / test (push) Failing after 4m52s

This commit is contained in:
2026-02-03 06:15:23 +00:00
parent 94aea3006a
commit 97c5954e45

View File

@@ -7,25 +7,6 @@ on:
branches: [main] branches: [main]
jobs: jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black mypy
- name: Run ruff
run: ruff check .
- name: Run black
run: black --check .
- name: Run mypy
run: mypy .
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -34,22 +15,11 @@ jobs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.11'
cache: 'pip'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pytest click pyyaml jsonschema tomli
pip install -e . pip install -e .
- name: Run tests - name: Run tests
run: pytest -v run: pytest -v --tb=short
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build
run: pip install build
- name: Build package
run: python -m build