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 de46506 commit 5b93dd2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
# Windows
Windows:
machine:
image: 'windows-server-2019-vs2019:current'
image: 'windows-server-2019-vs2019:2022.08.1'
shell: powershell.exe -ExecutionPolicy Bypass

resource_class: windows.large
parallelism: 4
parallelism: 8

steps:
- checkout
Expand Down Expand Up @@ -74,9 +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
# Fix permission denied error
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 @@ -104,7 +104,7 @@ jobs:
image: ubuntu-2004:2022.10.1

resource_class: large
parallelism: 4
parallelism: 8

steps:
- checkout
Expand All @@ -122,6 +122,9 @@ 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
Expand All @@ -143,7 +146,7 @@ jobs:
- image: cimg/python:3.10

resource_class: large
parallelism: 4
parallelism: 8

steps:
- checkout
Expand Down

0 comments on commit 5b93dd2

Please sign in to comment.