extracted ci setup to class