[#37] feature: real-time chat in game with socket.io server #33
Workflow file for this run
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", "experiment/backend/socketio"] | |
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 socketio-app-dev & | |
poetry run ruff check -v app | |
kill -s sigterm $(cat ./pid.log) | |
- name: Run test by pytest | |
run: | | |
cd backend | |
poetry run pytest -v tests |