Skip to content

Commit 08c94a7

Browse files
authored
Update build.yml
1 parent 2c826c3 commit 08c94a7

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
steps:
2-
- uses: actions/checkout@v4
3-
- name: Set up Python
4-
uses: actions/setup-python@v5
5-
with:
6-
python-version: '3.x'
7-
- name: Install dependencies
8-
run: |
9-
python -m pip install --upgrade pip
10-
pip install spacy requests nltk
11-
python -m spacy download en_core_web_lg
12-
- name: Test with pytest
13-
run: |
14-
pip install pytest pytest-cov
15-
pytest test.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
1+
name: Python Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Adjust according to your main branch
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.x'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install spacy requests nltk pytest pytest-cov
26+
python -m spacy download en_core_web_lg
27+
28+
- name: Run tests
29+
run: |
30+
pytest test.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

0 commit comments

Comments
 (0)