Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-arash authored Sep 25, 2024
1 parent 2c826c3 commit 08c94a7
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
steps:
- 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
python -m spacy download en_core_web_lg
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest test.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
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

0 comments on commit 08c94a7

Please sign in to comment.