MCR-157 Added client-server synchronisation checks for multiplayer games, and fixed a few other bugs. #283
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
validate: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.11" | |
- name: Install system packages (Ubuntu) | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libsdl2-2.0-0 vlc | |
if: matrix.os == 'ubuntu-latest' | |
- name: Install system packages (MacOS) | |
run: | | |
brew update | |
brew install --cask vlc | |
if: matrix.os == 'macos-latest' | |
- name: Install requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r dev_requirements.txt | |
- name: Lint | |
run: pylint $(git ls-files '*.py') | |
- name: Test | |
run: coverage run -m unittest discover -s source/tests/ -t source/tests/ | |
- name: Coverage | |
run: coverage report -m --fail-under=100 |