Skip to content

Workflow file update #22

Workflow file update

Workflow file update #22

# 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: translation-check
run: |
cd validator
python main.py "../The_Colonists_Translation_Data_Italian.csv"
echo "RESULT_CAT=$(cat result.txt)" >> $GITHUB_OUTPUT
- name: Output result
env:
RESULT_TEXT: ${{ steps.translation-check.outputs.RESULT_CAT }}
run: echo "$RESULT_TEXT"