fix: 'dict' object has no attribute 'name' #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'astraapi/**' | |
| - 'core/**' | |
| - 'scripts/**' | |
| - 'pyproject.toml' | |
| - 'docs_src/**' | |
| - 'tests/**' | |
| - '.github/workflows/tests.yml' | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ['3.14'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: 'latest' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake build-essential libdeflate-dev | |
| - name: Install Python dependencies | |
| run: | | |
| uv venv | |
| uv pip install -e ".[dev,standard]" | |
| - name: Build C++ core | |
| run: | | |
| source .venv/bin/activate | |
| bash scripts/build_core.sh | |
| - name: Run tests | |
| run: .venv/bin/python -m pytest tests/ -x -q --tb=short |