feature: apply FlatBuffers payload to socket.io server on game config events #48
This file contains 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: Python Package build test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.12.0' | |
- name: Install poerty | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: '1.6.1' | |
- name: Install dependencies by poerty | |
run: | | |
cd backend | |
poetry install | |
- name: Run linter by ruff | |
run: | | |
cd backend | |
poetry run ruff check -v app | |
- name: Run test by pytest | |
run: | | |
cd backend | |
mkdir -p log/dev | |
poetry run socketio-app-dev & | |
poetry run pytest -v tests | |
kill -s sigterm $(cat ./pid.log) |