Skip to content

Add ENV variables validation before running the discord bot #106

Add ENV variables validation before running the discord bot

Add ENV variables validation before running the discord bot #106

Workflow file for this run

name: Test and Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Lint with Ruff
run: poetry run ruff check .
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Format check with Ruff
run: poetry run ruff format --check .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Set up AI server
uses: ./.github/actions/setup-ai
- name: Run pytest
run: poetry run pytest tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Typecheck with mypy
run: poetry run mypy .