feat: integrate BERTopic for topic modeling #23
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: | |
pull_request: | |
types: [ opened, synchronize, reopened, ready_for_review ] | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
services: | |
neo4j: | |
image: neo4j:5 | |
ports: | |
- 7687:7687 # Bolt port | |
- 7474:7474 # HTTP port | |
env: | |
NEO4J_AUTH: neo4j:${{ secrets.NEO4J_PASSWORD }} | |
options: >- | |
--health-cmd="curl -f http://localhost:7474 || exit 1" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=5 | |
strategy: | |
matrix: | |
python-version: [ 3.12 ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: Gr1N/setup-poetry@v9 | |
- name: Install dependencies | |
run: poetry install | |
- name: Run pre-commit hooks | |
run: poetry run pre-commit run --all-files --show-diff-on-failure | |
- name: Run tests | |
env: | |
NEO4J_URI: bolt://localhost:7687 | |
NEO4J_USER: neo4j | |
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }} | |
run: poetry run pytest |