fix: update CI workflow for Gitea Actions compatibility
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled

This commit is contained in:
2026-02-04 08:27:43 +00:00
parent 343c9b288e
commit 493164d147

View File

@@ -6,11 +6,16 @@ on:
pull_request: pull_request:
branches: [ main, master ] branches: [ main, master ]
permissions:
contents: read
checks: write
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout code
uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
@@ -18,23 +23,25 @@ jobs:
python-version: '3.11' python-version: '3.11'
cache: 'pip' cache: 'pip'
- name: Install dependencies - name: Install linting tools
run: | run: |
python -m pip install --upgrade pip
pip install ruff mypy pip install ruff mypy
- name: Run Python linting - name: Run ruff check
run: | run: python -m ruff check config_convert tests
ruff check config_convert tests
ruff format --check config_convert tests
- name: Run Python type checking - name: Run ruff format check
run: | run: python -m ruff format --check config_convert tests
python -m mypy config_convert tests
- name: Run mypy type checking
run: python -m mypy config_convert tests
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout code
uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
@@ -44,8 +51,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip
pip install -e ".[dev]" pip install -e ".[dev]"
- name: Run Python tests - name: Run pytest
run: | run: python -m pytest tests/ -v --tb=short --ignore=tests/integration/
pytest tests/ -v --tb=short --ignore=tests/integration/