β¬οΈ bump: Bump ruff from 0.9.2 to 0.12.1 in /backend #94
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: "π CI Pipeline" | |
| on: | |
| push: | |
| branches: | |
| - "develop" | |
| paths: | |
| - ".github/**" | |
| - "backend/kayman/**" | |
| - "backend/pyproject.toml" | |
| - "backend/poetry.lock" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| backend-test: | |
| name: "π§ͺ Backend Testing" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "backend" | |
| steps: | |
| - name: "π Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "π Set up Poetry" | |
| uses: tomy0000000/actions/python-poetry-install@main | |
| with: | |
| working_directory: "backend" | |
| python_version: "3.12" | |
| - name: "π§ͺ Testing" | |
| run: | | |
| poetry run scripts/test.sh | |
| - name: "π Report coverage" | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| backend-lint: | |
| name: "π Backend Linting" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "backend" | |
| steps: | |
| - name: "π Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "π Set up Poetry" | |
| uses: tomy0000000/actions/python-poetry-install@main | |
| with: | |
| working_directory: "backend" | |
| python_version: "3.12" | |
| - name: "π Linting" | |
| run: | | |
| poetry run scripts/lint.sh | |
| frontend-lint: | |
| name: "π Frontend Linting" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "frontend" | |
| steps: | |
| - name: "π Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "βοΈ Setup pnpm" | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: "frontend/package.json" | |
| run_install: false | |
| - name: "βοΈ Setup Node.js" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: "frontend/package.json" | |
| cache: "pnpm" | |
| cache-dependency-path: "frontend/pnpm-lock.yaml" | |
| - name: "π¦ Install dependencies" | |
| run: pnpm install --frozen-lockfile | |
| - name: "π Linting" | |
| run: pnpm lint | |
| license: | |
| name: "πͺͺ License Scan" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "π Checkout" | |
| uses: actions/checkout@v4 | |
| # FOSSA's API Key are meant to be exposed as to doc | |
| - name: "πͺͺ License Scan" | |
| uses: fossas/fossa-action@main | |
| with: | |
| api-key: 2d7865a44aa575d857521faaee1a57f8 | |
| build-backend: | |
| name: "ποΈ Build Backend Image" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "backend" | |
| needs: [backend-test, backend-lint, license] | |
| if: success() && github.ref == 'refs/heads/develop' | |
| steps: | |
| - name: "π Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "βοΈ Setup Docker Meta" | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ github.repository }} | |
| ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=edge | |
| labels: | | |
| org.opencontainers.image.title=kayman-backend | |
| org.opencontainers.image.documentation=${{ github.repository }}/wiki | |
| org.opencontainers.image.authors=tomy0000000 | |
| - name: "π Build and Push Image" | |
| uses: tomy0000000/actions/build-push-image@main | |
| with: | |
| docker_password: ${{ secrets.DOCKER_PASSWORD }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| dockerfile: "backend/Dockerfile" | |
| build-frontend: | |
| name: "ποΈ Build Frontend Image" | |
| runs-on: ubuntu-latest | |
| needs: [backend-test, backend-lint, frontend-lint, license] | |
| if: success() && github.ref == 'refs/heads/develop' | |
| steps: | |
| - name: "π Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "βοΈ Setup Docker Meta" | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ github.repository }} | |
| ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=edge | |
| labels: | | |
| org.opencontainers.image.title=kayman-frontend | |
| org.opencontainers.image.documentation=${{ github.repository }}/wiki | |
| org.opencontainers.image.authors=tomy0000000 | |
| - name: "π Build and Push Image" | |
| uses: tomy0000000/actions/build-push-image@main | |
| with: | |
| docker_password: ${{ secrets.DOCKER_PASSWORD }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| dockerfile: "frontend/Dockerfile" |