chore(deps): bump github/codeql-action from 3 to 4 #7
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: | |
| pull_request: | |
| jobs: | |
| unit: | |
| name: Unit Tests (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[aws,gcp,azure,vault,dev]" | |
| - name: Run unit tests | |
| run: pytest -m "not integration" -v | |
| integration: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| services: | |
| localstack: | |
| image: localstack/localstack:3 | |
| ports: | |
| - 4566:4566 | |
| env: | |
| SERVICES: kms | |
| options: >- | |
| --health-cmd "curl -sf http://localhost:4566/_localstack/health" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 15 | |
| vault: | |
| image: hashicorp/vault:latest | |
| ports: | |
| - 8200:8200 | |
| env: | |
| VAULT_DEV_ROOT_TOKEN_ID: root | |
| VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200 | |
| SKIP_SETCAP: "true" | |
| VAULT_ADDR: http://127.0.0.1:8200 | |
| options: >- | |
| --health-cmd "vault status" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[aws,gcp,azure,vault,dev]" | |
| - name: Run integration tests | |
| run: pytest -m integration -v | |
| env: | |
| AWS_ACCESS_KEY_ID: test | |
| AWS_SECRET_ACCESS_KEY: test | |
| AWS_DEFAULT_REGION: us-east-1 | |
| AWS_ENDPOINT_URL: http://localhost:4566 | |
| VAULT_ADDR: http://localhost:8200 | |
| VAULT_TOKEN: root |