Add Gitea Actions workflow: ci.yml
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-01-30 18:30:13 +00:00
parent 9ab1455dbb
commit 583229af05

View File

@@ -15,43 +15,19 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.9'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -e ".[dev]" pip install -e .
pip install pytest pytest-cov ruff build
- name: Run tests
run: pytest tests/ -v --cov=config_auditor
- name: Run linting - name: Run linting
run: ruff check config_auditor/ tests/ run: ruff check config_auditor/ tests/
build: - name: Run tests
needs: test run: pytest tests/ -v --cov=config_auditor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .
- name: Build package - name: Build package
run: | run: python -m build
pip install build
python -m build
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/