chore(deps): batch dependency updates #617
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: Core Test | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - 'src/server/core/**' | |
| - '.github/workflows/core-test.yaml' | |
| pull_request: | |
| branches: | |
| - dev | |
| paths: | |
| - 'src/server/core/**' | |
| - '.github/workflows/core-test.yaml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Tests on ${{ matrix.os }} for ${{ matrix.python-version }} | |
| strategy: | |
| matrix: | |
| python-version: [3.13] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: src/server/ | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install dependencies | |
| run: | | |
| cd core | |
| uv sync --frozen --no-dev --no-cache-dir | |
| - name: Start containers | |
| working-directory: src/server | |
| run: | | |
| cp .env.example .env | |
| cp core/config.yaml.example core/config.yaml | |
| if ! docker compose up -d --wait --quiet-pull acontext-server-pg acontext-server-redis acontext-server-seaweedfs acontext-server-seaweedfs-setup 2>&1; then | |
| echo "❌ Docker compose failed to start, showing logs:" | |
| docker compose logs | |
| exit 1 | |
| fi | |
| echo "✅ All containers started successfully" | |
| - name: Test with pytest | |
| run: | | |
| cd core | |
| uv run -m pytest --junit-xml=junit/test-results-${{ matrix.python-version }}.xml --cov=. --cov-report=xml:coverage-${{ matrix.python-version }}.xml tests/ -s -v | |
| - name: Upload pytest test results and coverage | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f | |
| with: | |
| name: pytest-results-${{ matrix.python-version }} | |
| path: | | |
| ./src/server/core/junit/test-results-${{ matrix.python-version }}.xml | |
| ./src/server/core/coverage-${{ matrix.python-version }}.xml | |
| retention-days: 30 | |
| if: ${{ always() }} | |
| - name: Stop containers | |
| if: ${{ always() }} | |
| run: | | |
| docker compose down |