Skip to content

feat: updated text based API to JSON, including tests. added new minigame, bosses for varlamore update #31

feat: updated text based API to JSON, including tests. added new minigame, bosses for varlamore update

feat: updated text based API to JSON, including tests. added new minigame, bosses for varlamore update #31

Workflow file for this run

name: ci
on:
pull_request:
branches: ["main"]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
test:
needs: linting
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ["ubuntu-latest"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --with dev
- name: Run mypy
run: |
poetry run mypy .
- name: Run pytest
run: |
poetry run coverage run --branch -m pytest tests/
- name: Check coverage
run: |
poetry run coverage report --show-missing --fail-under=100 --skip-covered --skip-empty