Skip to content

Replace the BRAT with CortexLink #2

Replace the BRAT with CortexLink

Replace the BRAT with CortexLink #2

name: Python Package CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, 3.10]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install googlesearch-python colorama tabulate
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
pip install flake8
# Replace 'brat.py' with the correct Python file name you want to lint
flake8 cortexlink.py # <-- Update this to match your main script file
# Uncomment below for stricter linting (build fails on lint errors)
# flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Run tests
run: |
echo "No tests available"
# Replace with actual test command if tests exist
# python -m unittest discover