Skip to content

Fix relative paths in build workflow #5

Fix relative paths in build workflow

Fix relative paths in build workflow #5

Workflow file for this run

name: Build
on:
push:
paths:
- "data/**"
- ".github/workflows/build.yml"
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
env:
LT_HOME: lt/languagetool
PT_DICT_HOME: lt/portuguese-pos-dict
steps:
- uses: actions/checkout@v3
with:
path: ${{ env.PT_DICT_HOME }}
repository: ${{ env.GITHUB_ACTION_REPOSITORY }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: Gr1N/setup-poetry@v8
- name: Check Poetry config
run: poetry check -C ${{ env.PT_DICT_HOME }}
- name: Install dependencies
run: poetry install -C ${{ env.PT_DICT_HOME }}
env:
POETRY_HTTP_BASIC_GITLAB_USERNAME: "lt-ai-package-registry"
POETRY_HTTP_BASIC_GITLAB_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_GITLAB_PASSWORD }}
- name: Set dictionary version
run: echo "PT_DICT_VERSION=$(git describe --work-tree=${{ env.PT_DICT_HOME }} --tags --abrev=0 | sed 's/^v//g')" >> $GITHUB_ENV
- name: Build POS tagging dictionary
run: |
cd ${{ env.PT_DICT_HOME }} && bash ./pos_tagger_scripts/build-lt.sh && cd -
- name: Build spelling dictionaries
run: poetry run -C ${{ env.PT_DICT_HOME }} python ./${{ env.PT_DICT_HOME}/pt_dict/scripts/build_spelling_dicts.py

Check failure on line 45 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 45, Col: 12): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
- name: Checkout LT
uses: actions/checkout@v3
with:
repository: languagetool-org/languagetool
path: ${{ env.LT_HOME }}
token: ${{ secrets.LT_OS_TOKEN }}