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 ebf8c4c commit e22e2c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
machine:
image: 'windows-server-2019-vs2019:current'
shell: powershell.exe -ExecutionPolicy Bypass

resource_class: windows.large
parallelism: 4

steps:
- checkout
Expand Down Expand Up @@ -60,7 +62,9 @@ jobs:
macOS:
macos:
xcode: 14.1.0

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

steps:
- checkout
Expand Down Expand Up @@ -96,7 +100,9 @@ jobs:
Linux:
machine:
image: ubuntu-2004:2022.10.1

resource_class: large
parallelism: 4

steps:
- checkout
Expand All @@ -114,6 +120,9 @@ jobs:
# Run tests
- run:
command: |
# Fix PyQt
export QT_QPA_PLATFORM=offscreen
pytest tests/wl_tests_nlp/wl_tests_spacy/test_spacy_eng.py
pytest tests/wl_tests_nlp/test_sentence_tokenization.py
Expand All @@ -132,7 +141,9 @@ jobs:
Docker:
docker:
- image: cimg/python:3.10

resource_class: large
parallelism: 4

steps:
- checkout
Expand Down
5 changes: 5 additions & 0 deletions requirements/requirements_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# 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

0 comments on commit e22e2c6

Please sign in to comment.