Skip to content

Add unit test data

Add unit test data #6

Workflow file for this run

name: Run CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-24.04
services:
cassandra:
image: cassandra
ports:
- 9042:9042
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install using Poetry
run: |
pip install poetry
poetry install
- name: Linting and formatting checks
run: |
poetry run ruff format --check src
poetry run ruff check src
- name: Static type checking
run: |
poetry run mypy src
- name: Create Cassandra keyspace
run: |
docker exec ${{ job.services.cassandra.id }} cqlsh localhost 9042 \
--execute "CREATE KEYSPACE ragamuffin WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};"
- name: Run tests
run: |
poetry run muffin --version
poetry run pytest -v --cov=ragamuffin tests