Fix pyproject.toml (#60) #90
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: test | |
| on: [push] | |
| # on: | |
| # push: | |
| # branches: | |
| # - main | |
| # pull_request: | |
| # types: | |
| # - opened | |
| # - synchronize | |
| jobs: | |
| test-backend: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 2 | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| # Install a specific version of uv. | |
| version: "0.5.24" | |
| enable-cache: true | |
| - name: Install the dependencies | |
| run: uv sync --all-extras --group dev | |
| - name: Create gcloud key file | |
| run: openssl base64 -d -A <<< '${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}' -out key.json | |
| - name: Run tests | |
| run: | | |
| uv run ruff check | |
| uv run pytest . | |
| uv run safety check --full-report |