README.mdとREADME_ja.mdのyougenオプションの説明を更新し、用言が見出し語に統一されることを明記。バージョンを0.… #46
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: Python Package Test | |
on: | |
pull_request: | |
branches: | |
- develop | |
- release | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: download synonym file | |
run: | | |
curl -L -f -o yurenizer/data/synonyms.txt https://raw.githubusercontent.com/WorksApplications/SudachiDict/refs/heads/develop/src/main/text/synonyms.txt | |
if [ ! -f yurenizer/data/synonyms.txt ]; then | |
echo "Failed to download synonyms.txt" | |
exit 1 | |
fi | |
- name: Run tests | |
run: | | |
poetry run pytest |