Bump version: 0.1.1 → 0.2.0 #3
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] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| env: | |
| BIGTABLE_EMULATOR_HOST: localhost:8086 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Start BigTable emulator | |
| run: | | |
| docker run -d -p 8086:8086 --name bigtable-emulator \ | |
| gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators \ | |
| gcloud beta emulators bigtable start --host-port=0.0.0.0:8086 | |
| timeout 30 bash -c 'until nc -z localhost 8086; do sleep 1; done' | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-cov | |
| pip install -e . | |
| - name: Run tests with coverage | |
| run: pytest --cov=kvdbclient --cov-report=xml tests/ | |
| - name: Upload coverage to Codecov | |
| if: matrix.python-version == '3.12' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./coverage.xml | |
| fail_ci_if_error: false | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |