Skip to content

🛠️ CI: (f3a6cdbe515cc64a84fe60a3a5fb2c2d1450ca51) #52

🛠️ CI: (f3a6cdbe515cc64a84fe60a3a5fb2c2d1450ca51)

🛠️ CI: (f3a6cdbe515cc64a84fe60a3a5fb2c2d1450ca51) #52

Workflow file for this run

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 .