chore: update tests.yml (#52) #138
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: Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Lint the workflow files themselves first. actionlint statically checks | |
| # ${{ }} expressions (incl. that functions like startsWith/contains exist), | |
| # which catches errors that otherwise only surface as a startup failure with | |
| # zero jobs run — e.g. the invalid trim() that broke ai-review.yml. | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Download actionlint | |
| id: get_actionlint | |
| run: bash <(curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/393031adb9afb225ee52ae2ccd7a5af5525e03e8/scripts/download-actionlint.bash) 1.7.11 | |
| shell: bash | |
| - name: Lint workflow files | |
| run: ${{ steps.get_actionlint.outputs.executable }} -color | |
| shell: bash | |
| test: | |
| needs: actionlint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6.3.0 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e '.[web]' pytest | |
| - name: Run tests | |
| run: make test | |
| helm: | |
| needs: actionlint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v5 | |
| - name: Lint Helm chart | |
| run: helm lint deploy/helm | |
| - name: Render production values | |
| run: helm template serge deploy/helm -n serge -f deploy/helm/env/prod.yaml |