Add Gitea Actions workflow: ci.yml
Some checks failed
CI / lint (push) Failing after 4m44s
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
2026-02-05 22:20:36 +00:00
parent d1e89420bf
commit bfbb91ec4f

View File

@@ -28,7 +28,7 @@ jobs:
python -m pip install ruff python -m pip install ruff
- name: Run linting - name: Run linting
run: python -m ruff check repohealth-cli/src/ repohealth-cli/tests/ run: python -m ruff check src/ tests/
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -46,11 +46,11 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -r repohealth-cli/requirements.txt python -m pip install -r requirements.txt
python -m pip install pytest pytest-cov python -m pip install pytest pytest-cov
- name: Run tests - name: Run tests
run: python -m pytest repohealth-cli/tests/ -xvs --tb=short run: python -m pytest tests/ -xvs --tb=short
- name: Upload coverage - name: Upload coverage
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@@ -75,10 +75,8 @@ jobs:
- name: Install build dependencies - name: Install build dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -r repohealth-cli/requirements.txt python -m pip install -r requirements.txt
python -m pip install build python -m pip install build
- name: Build package - name: Build package
run: | run: python -m build
cd repohealth-cli
python -m build