Switch to minecraftstatus library for !!mcstatus command #503
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, pull_request, workflow_dispatch ] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: configure poetry | |
run: poetry config virtualenvs.in-project true | |
- name: load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- name: install dependencies | |
run: poetry install | |
- name: black check | |
run: poetry run black . --check | |
- name: isort check | |
run: poetry run isort . --check | |
- name: ruff | |
run: poetry run ruff . | |
- name: mypy | |
run: poetry run mypy | |
- name: pytest | |
run: poetry run pytest | |
- name: json check | |
run: "find bot karen common -name \"*.json\" | while read file; do { echo \"Checking file: $file\"; jq . $file -c > /dev/null; }; done" | |
- name: text check | |
run: poetry run check_text |