Skip to content

Remove nltk.download #20

Remove nltk.download

Remove nltk.download #20

name: Unit test and code coverage (Ubuntu)
on:
push:
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
branches:
- dev
paths-ignore:
- '**.md'
- 'docs/**'
jobs:
unittest:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-24.04"]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build tools
run: |
python -m pip install --upgrade "pip<24.1" "setuptools==73.0.1"
python -m pip install coverage coveralls
- name: Install PyTorch
run: python -m pip install torch
# if needed, get pip wheel link from http://download.pytorch.org/whl/torch/
# - name: Install dependencies
# env:
# SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: True
# run: |
# python -m pip install -r docker_requirements.txt
- name: Install PyThaiNLP
run: |
python -m pip install .
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: |
coveralls
# coverage run -m unittest discover