fix(frontend): sync tutorial dismissal with user profile for persistence #155
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: TraderCopilot CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| backend-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./backend | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest httpx ruff | |
| - name: Link Root DB | |
| run: | | |
| # Simulate local dev structure where db is in root | |
| touch ../dev_local.db | |
| - name: Lint with Ruff | |
| run: | | |
| ruff check . | |
| - name: Test with pytest | |
| run: | | |
| export DATABASE_URL=sqlite:///../dev_local.db | |
| export SECRET_KEY=testing_secret | |
| export PYTHONPATH=$PYTHONPATH:. | |
| pytest tests/test_auth_flow_v2.py | |
| web-build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./web | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build |