fix(web): hide opponent hands and auto-advance kyoku in human-AI mode #171
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.md' | |
| - 'LICENSE' | |
| - '.github/workflows/docs.yml' | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.md' | |
| - 'LICENSE' | |
| - '.github/workflows/docs.yml' | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build_and_test: | |
| name: Build and Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y clang p7zip-full | |
| - name: Install Python build dependencies | |
| run: pip install cmake ninja build | |
| - name: Build package | |
| run: pip install . -v | |
| - name: Run shanten regression tests | |
| run: python -c "from pymahjong.test import test_shanten_regressions; test_shanten_regressions()" | |
| - name: Run basic tests | |
| run: python -c "from pymahjong.test import test; test()" | |
| - name: Download paipu data | |
| run: wget https://github.com/Agony5757/mahjong/releases/download/v1.0.4/paipuxmls.7z | |
| - name: Extract paipu data | |
| run: 7z x paipuxmls.7z | |
| - name: Run paipu replay validation | |
| run: python -c "import pymahjong as pm; pm.paipu_replay(mode='debug')" | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install linters | |
| run: pip install ruff | |
| - name: Run Ruff | |
| run: ruff check pymahjong/ || true |