Bump pypa/gh-action-pypi-publish from 1.13.0 to 1.14.0 #20
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 | |
| with: | |
| version: "latest" | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: uv sync --all-groups | |
| - name: Ruff check | |
| run: uv run ruff check . | |
| - name: Ruff format check | |
| run: uv run ruff format . --diff | |
| - name: Mypy | |
| run: uv run mypy langchain_arcadedb | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 | |
| with: | |
| version: "latest" | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --group test | |
| - name: Run unit tests | |
| run: uv run pytest tests/unit_tests/ --disable-socket --allow-unix-socket -v | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| services: | |
| arcadedb: | |
| image: arcadedata/arcadedb:latest | |
| ports: | |
| - 2480:2480 | |
| - 7687:7687 | |
| env: | |
| JAVA_OPTS: "-Darcadedb.server.plugins=Bolt:com.arcadedb.bolt.BoltProtocolPlugin" | |
| arcadedb.server.rootPassword: playwithdata | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 | |
| with: | |
| version: "latest" | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: uv sync --group test --group test_integration | |
| - name: Wait for ArcadeDB | |
| run: | | |
| for i in $(seq 1 30); do | |
| curl -s http://localhost:2480/api/v1/server -u root:playwithdata && break | |
| sleep 2 | |
| done | |
| - name: Create test database | |
| run: | | |
| curl -X POST http://localhost:2480/api/v1/server \ | |
| -d '{"command":"create database mydb"}' \ | |
| -u root:playwithdata \ | |
| -H "Content-Type: application/json" | |
| - name: Run integration tests | |
| env: | |
| ARCADEDB_URI: bolt://localhost:7687 | |
| ARCADEDB_USERNAME: root | |
| ARCADEDB_PASSWORD: playwithdata | |
| ARCADEDB_DATABASE: mydb | |
| run: uv run pytest tests/integration_tests/ -v |