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 70717d0 commit de46506
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
xcode: 14.1.0

resource_class: macos.x86.medium.gen2
parallelism: 2
# Parallelism unsupported on macOS
parallelism: 1

steps:
- checkout
Expand All @@ -73,8 +74,9 @@ jobs:
- run:
command: |
pip3 install --upgrade pip setuptools
# Fix permission error
pip3 install --requirement requirements/requirements_no_deps.txt --no-deps
pip3 install --requirement requirements/requirements_tests.txt
pip3 install --requirement requirements/requirements_no_deps.txt --no-deps --user
# Download models and data files
python3 utils/wl_downloader_ci.py
name: Install dependencies
Expand Down Expand Up @@ -120,9 +122,7 @@ jobs:
# Run tests
- run:
command: |
# Fix PyQt
export QT_QPA_PLATFORM=offscreen
# Use "python -m pytest" instead to fix "pytest: command not found"
python3.10 -m pytest tests/wl_tests_nlp/wl_tests_spacy/test_spacy_eng.py
python3.10 -m pytest tests/wl_tests_nlp/test_sentence_tokenization.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
pytest tests/wl_tests_file_area/test_file_area.py
# Ignore tests of Profiler due to unknown errors
pytest --ignore=tests/wl_tests_nlp --ignore=tests/wl_tests_file_area/test_file_area.py --ignore=tests/wl_tests_work_area/test_profiler.py
pytest --ignore=tests/wl_tests_nlp --ignore=tests/wl_tests_file_area/test_file_area.py
# Linux
build-linux:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
pytest tests/wl_tests_file_area/test_file_area.py
# Ignore tests of Profiler due to unknown errors
pytest --ignore=tests/wl_tests_nlp --ignore=tests/wl_tests_file_area/test_file_area.py --ignore=tests/wl_tests_work_area/test_profiler.py
pytest --ignore=tests/wl_tests_nlp --ignore=tests/wl_tests_file_area/test_file_area.py
displayName: 'Run tests'
# Linux
Expand Down

0 comments on commit de46506

Please sign in to comment.