build(deps): update redis requirement from >=5 to >=8.1.0 in /benchmarks #101
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
| # Unit tests: no Docker. Integration tests: explicit Aerospike CE container | |
| # (scripts/start_aerospike_ce.sh) then pytest with AEROSPIKE_TEST_* env vars. | |
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| unit: | |
| name: Unit tests (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade pip && pip install -e ".[dev]" | |
| - name: Run unit tests | |
| run: pytest -m "not aerospike" -v --tb=short | |
| integration: | |
| name: Integration tests (Aerospike CE) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.11" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade pip && pip install -e ".[dev]" | |
| - name: Start Aerospike CE (Docker) | |
| run: | | |
| chmod +x scripts/start_aerospike_ce.sh scripts/stop_aerospike_ce.sh | |
| ./scripts/start_aerospike_ce.sh | |
| docker ps --filter "name=adk-aerospike-ci" | |
| cat .aerospike-ci.env | |
| - name: Run integration tests | |
| run: | | |
| set -a | |
| source .aerospike-ci.env | |
| set +a | |
| pytest -m aerospike -v --tb=short | |
| - name: Stop Aerospike CE | |
| if: always() | |
| run: ./scripts/stop_aerospike_ce.sh |