🛠️ CI: Add scripts/configure-guild.py (#197) * Add scripts/configure-guild.py Supported features: * Enable community server * Categories * Channels * Text channel topics * Forum channel guidelines * Forum channel tags * flake8: ignore .venv * Don't delete tags, only add * Create roles, configure system channels * Check if required system channels exist * Add permission overwrite configuration * Refactor method structure * Finish permission updates * Remove 'connect' permission * Fix: Make... #595
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 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11.4' | |
| - name: Install pipenv | |
| run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python | |
| - run: pipenv install --dev | |
| - name: Run Black | |
| run: pipenv run black --check . | |
| - name: Run Flake8 | |
| run: pipenv run flake8 . | |
| - name: Run isort | |
| run: pipenv run isort --check . | |
| test: | |
| name: 🛠️ Test Python code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11.4' | |
| - name: Install pipenv | |
| run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python | |
| - run: pipenv install --dev | |
| - name: Run pytest | |
| run: pipenv run pytest . | |