This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
remove detalib & fix dependencies issues #146
This file contains 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: Test on Pull Request | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
# tests can't run in parallel as they write and read data with same keys | |
max-parallel: 1 | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
# Get the code into the container | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Setup Python | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Test the code | |
- name: Test code | |
env: | |
DETA_SDK_TEST_PROJECT_KEY: ${{secrets.DETA_SDK_TEST_PROJECT_KEY}} | |
DETA_SDK_TEST_BASE_NAME: ${{secrets.DETA_SDK_TEST_BASE_NAME}} | |
DETA_SDK_TEST_DRIVE_NAME: ${{secrets.DETA_SDK_TEST_DRIVE_NAME}} | |
DETA_SDK_TEST_DRIVE_HOST: ${{secrets.DETA_SDK_TEST_DRIVE_HOST}} | |
DETA_SDK_TEST_TTL_ATTRIBUTE: __expires | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest pytest-asyncio aiohttp | |
pytest |