Skip to content

Auto pairing

Auto pairing #7201

Workflow file for this run

name: Python-CI
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb # v3.5.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install flake8
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 server/ --count --show-source --statistics
# - name: Typecheck with mypy
# run: |
# mypy server/
- name: Run unit tests
run: |
PYTHONPATH=server python tests/test.py
PYTHONPATH=server python tests/test_compress.py
PYTHONPATH=server python tests/test_960_rematch.py
PYTHONPATH=server python tests/test_tournament.py
PYTHONPATH=server python tests/test_scheduler.py
PYTHONPATH=server python tests/test_corr_janggi_setup.py