Add ballot questions to maple #3890
Workflow file for this run
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: Repo Checks | |
| on: ["push", "pull_request"] | |
| jobs: | |
| check_python_quality: | |
| name: Code Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - run: pip install -r llm/requirements.txt | |
| - run: ruff check llm/ | |
| - run: ruff format --check llm/ | |
| - run: pytest llm/ | |
| check_code_quality: | |
| name: Code Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: ./.github/actions/setup-repo | |
| - name: Linting | |
| if: always() | |
| run: yarn lint | |
| - name: Formatting | |
| if: always() | |
| run: yarn check-formatting | |
| # TODO: Fix non-functions unit tests | |
| - name: Unit Tests | |
| if: always() | |
| run: yarn test | |
| - name: Types | |
| if: always() | |
| run: yarn check-types | |
| integration_tests: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| needs: check_code_quality | |
| services: | |
| typesense: | |
| image: typesense/typesense:0.24.0 | |
| ports: | |
| - 8108:8108 | |
| env: | |
| TYPESENSE_DATA_DIR: /app/data | |
| TYPESENSE_API_KEY: test-api-key | |
| TYPESENSE_ENABLE_CORS: "true" | |
| volumes: | |
| - typesense-data:/app/data | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: ./.github/actions/setup-repo | |
| - name: Cache Emulators | |
| uses: actions/cache@v4 | |
| with: | |
| path: /home/runner/.cache/firebase/emulators | |
| key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('~/.cache/firebase/emulators/**') }} | |
| - name: Smoke Test Firebase Admin CLI | |
| run: > | |
| ./node_modules/.bin/firebase --project demo-dtp emulators:exec | |
| --only auth,firestore | |
| --import tests/integration/exportedTestData | |
| "yarn firebase-admin run-script backfillTestimonyBallotQuestionId --env local" | |
| - name: Run Integration Tests | |
| run: > | |
| yarn test:integration-ci | |
| tests/integration/testimony.test.ts | |
| tests/integration/auth.test.ts | |
| tests/integration/moderation.test.ts | |
| tests/integration/profile.test.ts | |
| tests/integration/ballotQuestions.test.ts | |
| tests/integration/backfillTestimonyBallotQuestionId.test.ts |