Skip to content

Tutorial 2025: Update to TCOD 19.3 #67

Tutorial 2025: Update to TCOD 19.3

Tutorial 2025: Update to TCOD 19.3 #67

Workflow file for this run

# This workflow will install Python dependencies and run some static tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"] # Latest Python 3.
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install APT dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install mypy black isort -r requirements.txt
- name: MyPy
uses: liskin/gh-problem-matcher-wrap@v1
with:
linters: mypy
run: mypy --show-column-numbers .
- name: isort
uses: liskin/gh-problem-matcher-wrap@v1
with:
linters: isort
run: isort --check .
- name: Black
run: |
black --check .