Update boavizta-data-fr.csv - typo in line 39: EntertainmentT instead of Entertainment #229
Workflow file for this run
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
# Main Continuous Integration pipeline. | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Check that US & FR data are in sync | |
# Run the converter from US to FR, then check if there's any diff on the FR file. | |
run: | | |
python tools/gen_fr.py -s boavizta-data-us.csv -o boavizta-data-fr.csv | |
test -z "$(git diff boavizta-data-fr.csv)" | |
tools-test: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
parsers: | |
- 'tools/parsers/**' | |
tools: | |
- 'tools/**' | |
- name: Set up Python 3.9 | |
if: steps.filter.outputs.tools == 'true' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Check static typing | |
if: steps.filter.outputs.tools == 'true' | |
run: | | |
pip install -r tools/tests/requirements.txt | |
mypy --ignore-missing-imports tools | |
- name: Install dependencies | |
if: steps.filter.outputs.parsers == 'true' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r tools/requirements.txt | |
sudo apt install -y tesseract-ocr | |
- name: Run tests | |
if: steps.filter.outputs.parsers == 'true' | |
run: PYTHONPATH=. python -m unittest discover -s tools/tests |