🛠️ CI: (9dd2685eb63b95770d698862ff801fa6ce7319e5) #642
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: EuroPython Discord Bot CI | |
| run-name: "🛠️ CI: ${{ github.event.head_commit.message }} (${{ github.sha }})" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| name: 🕵 Lint Python code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.6.14" | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install dev dependencies | |
| run: uv sync --dev | |
| - name: Check code format | |
| run: uv run --dev ruff format --check | |
| - name: Check code style | |
| run: uv run --dev ruff check | |
| test: | |
| name: 🛠️ Test Python code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.6.14" | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install dev dependencies | |
| run: uv sync --dev | |
| - name: Run pytest | |
| run: uv run --dev pytest . |