forked from KnowledgeCaptureAndDiscovery/somef
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 867 Bytes
/
Copy pathaction-test-before-PR.yml
File metadata and controls
34 lines (26 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Run SOMEF tests before PR
on:
pull_request:
branches:
- master #should be this branch or master?
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
- name: Download NLTK data
run: poetry run python -m nltk.downloader wordnet omw-1.4 punkt punkt_tab stopwords
- name: Configure SOMEF
run: poetry run somef configure -a
- name: Run pytest
run: poetry run pytest -v -s src/somef/test/test_JSON_export.py::TestJSONExport::test_issue_862