Skip to content

Refactor/improve tes models #39

Refactor/improve tes models

Refactor/improve tes models #39

Workflow file for this run

name: CI
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Lint with Ruff
run: |
poetry run ruff check crategen/
if: ${{ success() }}
- name: Type check with Mypy
run: |
poetry run mypy crategen/
- name: Run security checks with Bandit
run: |
poetry run bandit -r crategen/
- name: Install test dependencies
run: |
poetry add pytest pytest-cov pytest-mock
- name: Run tests
run: |
poetry run pytest --cov=crategen