Fix dependency upper limit #46
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: | |
| tags: | |
| - "v*.*.*" | |
| # branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-versions: ["3.10", "3.11", "3.12", "3.13"] | |
| environment: | |
| name: demo | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check env vars set | |
| run: | | |
| if [ -z "${{ vars.CLERK_PUBLISHABLE_KEY }}" ]; then | |
| echo "CLERK_PUBLISHABLE_KEY is not set" | |
| exit 1 | |
| fi | |
| if [ -z "${{ secrets.CLERK_SECRET_KEY }}" ]; then | |
| echo "CLERK_SECRET_KEY is not set" | |
| exit 1 | |
| fi | |
| - name: Create .env | |
| run: | | |
| echo "CLERK_PUBLISHABLE_KEY=${{ vars.CLERK_PUBLISHABLE_KEY }}" >> .env | |
| echo "CLERK_SECRET_KEY=${{ secrets.CLERK_SECRET_KEY }}" >> .env | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-versions }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.6.5" | |
| - name: DEBUG - check python version | |
| run: uv sync && uv run python --version | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run lint | |
| run: task lint | |
| - name: Run typecheck | |
| run: task typecheck | |
| - name: Initialize Reflex | |
| run: uv run reflex init | |
| working-directory: clerk_api_demo | |
| - name: Install playwright | |
| run: uv run playwright install chromium | |
| - name: Run tests | |
| run: task test |