Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Nov 4, 2024
1 parent ad397ff commit 07377a1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
5 changes: 4 additions & 1 deletion tests/test_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pytest
# pylint: disable=redefined-outer-name,protected-access

from unittest.mock import AsyncMock, Mock, MagicMock

import pytest

from fun_game.config import (
GameConfig,
FilterConfig,
Expand Down

0 comments on commit 07377a1

Please sign in to comment.