Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/lint-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint Python Code

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint

- name: Install project dependencies
run: |
pip install -e .

- name: Lint with pylint
run: |
pylint lemonade_arcade --rcfile .pylintrc

59 changes: 59 additions & 0 deletions .github/workflows/test_lemonade_client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Run LemonadeClient Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Linux with source installation
- os: ubuntu-latest
install-type: 'source'
test-name: 'Linux Source'

# Windows with source installation
- os: windows-latest
install-type: 'source'
test-name: 'Windows Source'

name: ${{ matrix.test-name }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install base dependencies
run: |
python -m pip install --upgrade pip

- name: Install source dependencies
run: |
pip install -e .

- name: Run unit tests
run: |
python test/lemonade_client_unit.py

- name: Run integration tests
run: |
python test/lemonade_client_integration.py
env:
PYTHONUNBUFFERED: 1

- name: Test integration example
run: |
python examples/lemonade_client_integration_example.py
env:
PYTHONUNBUFFERED: 1
18 changes: 18 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[MASTER]

# Ignore the builtin_games folder
ignore=builtin_games

[MESSAGES CONTROL]

# Disable the following warnings:
# W1203: logging-fstring-interpolation - Using f-strings in logging calls
# W0718: broad-exception-caught - Catching too general exception
# C0415: import-outside-toplevel - Import outside toplevel
# R0913: too-many-arguments - Too many arguments
# R1705: no-else-return - Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
# R0917: too-many-positional-arguments - Too many positional arguments
# R0912: too-many-branches - Too many branches
# C0114: missing-module-docstring - Missing module docstring
# R0915: too-many-statements - Too many statements
disable=W1203,W0718,C0415,R0913,R1705,R0917,R0912,C0114,R0915
Loading
Loading