MOSAICapp / .github /workflows /tests.yml
deep-introspection's picture
fix CI: install package so mosaic_core is importable
5012807
raw
history blame contribute delete
650 Bytes
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
CI: "true"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
pip install -e .
- name: Download NLTK data
run: python -c "import nltk; nltk.download('punkt_tab', quiet=True)"
- name: Run unit tests
run: pytest tests/test_core_functions.py -v