Skip to content

Add release workflow #12

Add release workflow

Add release workflow #12

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
env:
TICTACTOE_HEADLESS: "1"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run linters
run: |
python -m black --check src tests
python -m ruff check src tests
- name: Type checking
run: python -m mypy src
- name: Run tests (non-GUI)
run: python -m pytest -m "not gui"
- name: Build and smoke-test wheel
run: |
python -m build --wheel
python -m pip install dist/*.whl --force-reinstall
python -c "import tictactoe; print(tictactoe.__version__)"