CoolFace
Apppublic

blizzarman/polyglot-tutor

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
ci.yml64 linesDownload Raw Back to workflows
1name: CI2 3on:4  push:5    branches: [main]6  pull_request:7 8permissions:9  contents: read10 11jobs:12  quality:13    runs-on: ubuntu-latest14    steps:15      - uses: actions/checkout@v416 17      - name: Install uv18        uses: astral-sh/setup-uv@v519        with:20          python-version: "3.12"21          enable-cache: true22 23      - name: Install dependencies (frozen)24        run: uv sync --frozen25 26      - name: Ruff format check27        run: uv run ruff format --check .28 29      - name: Ruff lint30        run: uv run ruff check .31 32      - name: Tests33        run: uv run pytest34 35  docker:36    needs: quality37    if: github.event_name == 'push' && github.ref == 'refs/heads/main'38    runs-on: ubuntu-latest39    permissions:40      contents: read41      packages: write42    steps:43      - uses: actions/checkout@v444 45      - uses: docker/setup-buildx-action@v346 47      - name: Log in to GHCR48        uses: docker/login-action@v349        with:50          registry: ghcr.io51          username: ${{ github.actor }}52          password: ${{ secrets.GITHUB_TOKEN }}53 54      - name: Build & push55        uses: docker/build-push-action@v656        with:57          context: .58          push: true59          tags: |60            ghcr.io/${{ github.repository }}:latest61            ghcr.io/${{ github.repository }}:${{ github.sha }}62          cache-from: type=gha63          cache-to: type=gha,mode=max64