Skip to content

Update build.yml

Update build.yml #2

Workflow file for this run

name: Python Testing
on:
push:
branches:
- main # Adjust according to your main branch
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install spacy requests nltk pytest pytest-cov
python -m spacy download en_core_web_lg
- name: Run tests
run: |
pytest test.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html