Create CNAME #35
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: ShortsMaker | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| env: | |
| DISCORD_WEBHOOK_URL: "https://discord.com/api/webhooks/xxx" | |
| UV_LINK_MODE: copy | |
| steps: | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Setup FFmpeg | |
| uses: federicocarboni/setup-ffmpeg@v3.1 | |
| - name: Checkout the repository | |
| uses: actions/checkout@main | |
| - name: Install the latest version of uv and set the python version | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| pyproject-file: "pyproject.toml" | |
| - name: Install dependencies | |
| run: uv sync --extra cpu --group dev --frozen | |
| - name: Run tests | |
| run: uv run --frozen pytest |