Skip to content

🛠️ CI: (86ceeea6ddbf85d4951bd1868aba4a279c7cf062) #59

🛠️ CI: (86ceeea6ddbf85d4951bd1868aba4a279c7cf062)

🛠️ CI: (86ceeea6ddbf85d4951bd1868aba4a279c7cf062) #59

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 .