fix: tolerate partial career filters #131
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: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| python-package: | |
| name: Python package | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: package | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install package | |
| run: pip install -e . | |
| - name: Compile sources | |
| run: python -m compileall src | |
| - name: Run tests | |
| run: python -m unittest discover -s tests -v | |
| - name: Run public endpoint smoke tests | |
| env: | |
| TUE_API_LIVE_PUBLIC_TESTS: "1" | |
| run: python -m unittest discover -s tests -p test_public_endpoints_live.py -v | |
| go-cli: | |
| name: Go CLI | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: go | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.21" | |
| - name: Go test | |
| run: go test ./... | |
| - name: Go build | |
| run: go build ./cmd/tue | |
| nextjs: | |
| name: Next.js app | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: nextjs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: nextjs/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci --workspaces=false | |
| - name: Type check | |
| run: npm run check | |
| - name: Production build | |
| run: npm run build | |
| chatgpt: | |
| name: ChatGPT app | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: chatgpt | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: chatgpt/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci --workspaces=false | |
| - name: Type check | |
| run: npm run check | |
| - name: Production build | |
| run: npm run build | |
| ios: | |
| name: iOS app | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Build simulator app | |
| run: npm run build:ios:ci |