Skip to content

🛠️ CI: Refactor configuration (#213) * Remove unused forward reference * Registration: Use channel names instead of IDs * Registration: Use role names instead of IDs * Refactor config and cog setup General * User __name__ as logger name everywhere '$participants' command: * Move from extension module to simple cog * Use dynamic role list instead of hard-coded role names * Add channel visibility check bot.py * Simplify and refactor program notifications * Use channel names in config, not IDs ... #649

🛠️ CI: Refactor configuration (#213) * Remove unused forward reference * Registration: Use channel names instead of IDs * Registration: Use role names instead of IDs * Refactor config and cog setup General * User __name__ as logger name everywhere '$participants' command: * Move from extension module to simple cog * Use dynamic role list instead of hard-coded role names * Add channel visibility check bot.py * Simplify and refactor program notifications * Use channel names in config, not IDs ...

🛠️ CI: Refactor configuration (#213) * Remove unused forward reference * Registration: Use channel names instead of IDs * Registration: Use role names instead of IDs * Refactor config and cog setup General * User __name__ as logger name everywhere '$participants' command: * Move from extension module to simple cog * Use dynamic role list instead of hard-coded role names * Add channel visibility check bot.py * Simplify and refactor program notifications * Use channel names in config, not IDs ... #649

Workflow file for this run

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 .