🛠️ CI: (f3a6cdbe515cc64a84fe60a3a5fb2c2d1450ca51) #52
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: PyCon / PyData 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 Poetry | |
| run: curl -sSL https://install.python-poetry.org | python3 - | |
| - name: Configure Poetry | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| poetry config virtualenvs.create false | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run Ruff | |
| run: poetry run ruff 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 Poetry | |
| run: curl -sSL https://install.python-poetry.org | python3 - | |
| - name: Configure Poetry | |
| run: | | |
| export PATH="$HOME/.local/bin:$PATH" | |
| poetry config virtualenvs.create false | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run pytest | |
| run: poetry run pytest . | |