Update README.md #48
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 CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
computer-simulator: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Run tests and coverage | |
run: | | |
poetry run pytest --verbose | |
poetry run coverage run -m pytest | |
poetry run coverage report | |
- name: Run mypy checks | |
run: poetry run mypy . | |
- name: Check code formatting | |
run: poetry run ruff format --check . | |
- name: Run code linting | |
run: | | |
poetry run ruff check . |