Skip to content

Commit

Permalink
Tests: Add CI - CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene committed Aug 14, 2023
1 parent e22e2c6 commit 70717d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
xcode: 14.1.0

resource_class: macos.x86.medium.gen2
parallelism: 4
parallelism: 2

steps:
- checkout
Expand Down Expand Up @@ -123,18 +123,18 @@ jobs:
# Fix PyQt
export QT_QPA_PLATFORM=offscreen
pytest tests/wl_tests_nlp/wl_tests_spacy/test_spacy_eng.py
python3.10 -m pytest tests/wl_tests_nlp/wl_tests_spacy/test_spacy_eng.py
pytest tests/wl_tests_nlp/test_sentence_tokenization.py
pytest tests/wl_tests_nlp/test_word_tokenization.py
pytest tests/wl_tests_nlp/test_syl_tokenization.py
pytest tests/wl_tests_nlp/test_pos_tagging.py
pytest tests/wl_tests_nlp/test_lemmatization.py
python3.10 -m pytest tests/wl_tests_nlp/test_sentence_tokenization.py
python3.10 -m pytest tests/wl_tests_nlp/test_word_tokenization.py
python3.10 -m pytest tests/wl_tests_nlp/test_syl_tokenization.py
python3.10 -m pytest tests/wl_tests_nlp/test_pos_tagging.py
python3.10 -m pytest tests/wl_tests_nlp/test_lemmatization.py
pytest tests/wl_tests_nlp/ --ignore=tests/wl_tests_nlp/wl_tests_spacy --ignore=tests/wl_tests_nlp/test_sentence_tokenization.py --ignore=tests/wl_tests_nlp/test_word_tokenization.py --ignore=tests/wl_tests_nlp/test_syl_tokenization.py --ignore=tests/wl_tests_nlp/test_pos_tagging.py --ignore=tests/wl_tests_nlp/test_lemmatization.py
python3.10 -m pytest tests/wl_tests_nlp/ --ignore=tests/wl_tests_nlp/wl_tests_spacy --ignore=tests/wl_tests_nlp/test_sentence_tokenization.py --ignore=tests/wl_tests_nlp/test_word_tokenization.py --ignore=tests/wl_tests_nlp/test_syl_tokenization.py --ignore=tests/wl_tests_nlp/test_pos_tagging.py --ignore=tests/wl_tests_nlp/test_lemmatization.py
pytest tests/wl_tests_file_area/test_file_area.py
pytest --ignore=tests/wl_tests_nlp --ignore=tests/wl_tests_file_area/test_file_area.py
python3.10 -m pytest tests/wl_tests_file_area/test_file_area.py
python3.10 -m pytest --ignore=tests/wl_tests_nlp --ignore=tests/wl_tests_file_area/test_file_area.py
name: Run tests

# Docker
Expand Down
11 changes: 6 additions & 5 deletions requirements/requirements_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------

# For PyTorch on Linux using CPU
--index-url=https://download.pytorch.org/whl/cpu
--extra-index-url=https://pypi.org/simple
torch

# NLP
botok == 0.8.12
charset-normalizer == 3.2.0
Expand Down Expand Up @@ -69,3 +64,9 @@ requests
scipy
tzdata; sys_platform == 'win32' # Required by PyThaiNLP on Windows
wordcloud

# For PyTorch on Linux using CPU
# See: https://stackoverflow.com/a/57060441
--index-url=https://download.pytorch.org/whl/cpu
--extra-index-url=https://pypi.org/simple
torch

0 comments on commit 70717d0

Please sign in to comment.