workflow: drop gsdluw #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
- release/v** | |
types: | |
- opened | |
workflow_dispatch: | |
jobs: | |
codetest: | |
name: Test with pytest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Juman++ | |
run: | | |
wget https://github.com/ku-nlp/jumanpp/releases/download/v2.0.0-rc3/jumanpp-2.0.0-rc3.tar.xz | |
tar xvf jumanpp-2.0.0-rc3.tar.xz | |
sudo apt install build-essential -y | |
sudo apt install cmake -y | |
patch -p0 < .github/juman.patch | |
cd jumanpp-2.0.0-rc3/ | |
mkdir build | |
cd build/ | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local | |
make | |
sudo make install | |
cd ../../ | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install poetry | |
poetry install | |
- name: pytest | |
run: | | |
poetry run black --check --diff --quiet --skip-magic-trailing-comma . | |
poetry run pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true | |
verbose: true |