Skip to content

Replace Optional[T] with T | None #5

Replace Optional[T] with T | None

Replace Optional[T] with T | None #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Run Black
run: poetry run black --check fun_game tests
- name: Run MyPy
run: poetry run mypy fun_game tests
- name: Run Pylint
run: poetry run pylint fun_game tests
- name: Run Tests
run: poetry run pytest