Skip to content

Merge pull request #3 from Tomansion/player_choice_pull_request #37

Merge pull request #3 from Tomansion/player_choice_pull_request

Merge pull request #3 from Tomansion/player_choice_pull_request #37

Workflow file for this run

# Install dependencies and run tests with pytest
name: Python tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
pip install -r requirements.txt
- name: Test with unittest
run: |
python -m coverage run -m unittest
- name: Display coverage
run: |
python -m coverage report