fix: ensure CI workflow configuration is properly configured
Some checks failed
CI / test (push) Failing after 17s

This commit is contained in:
2026-02-01 10:05:16 +00:00
parent 79fe9dfcff
commit 6e108dbe0c

View File

@@ -2,51 +2,30 @@ name: CI
on:
push:
branches: [main]
branches: [ main, master ]
pull_request:
branches: [main]
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
pip install -e .
pip install pytest pytest-cov
- name: Run tests
run: pytest tests/ -v
run: pytest tests/ -v --tb=short
- name: Run linting
run: ruff check .
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build dependencies
run: pip install build
- name: Build package
run: python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- name: Check code coverage
run: pytest tests/ --cov=src --cov-report=term-missing