Skip to content

Translation check changes #36

Translation check changes

Translation check changes #36

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Translation Check
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r validator/requirements.txt
- name: Translation Validator
id: translationvalidat
continue-on-error: true # Continue to Output Step anyway
run: |
cd validator
python main.py "../The_Colonists_Translation_Data_Italian.csv"
if [ $? -ne 0 ]; then
echo "Translation Check Command failed, setting status to failure"
echo "::set-output name=status::failure"
else
echo "Translation Check Command succeeded, setting status to success"
echo "::set-output name=status::success"
fi
- name: Output result
run: |
cd validator
cat result.txt
if [ "${{ steps.translationvalidat.outputs.status }}" = "failure" ]; then
echo "::error::Previous step failed"
exit 1
fi